PgMiscellaneous

Members

Static functions

isZeroWidth
bool isZeroWidth(dchar ch)

Checks if a character that should not be normally rendered.

log2visGetEmbeddingLevels
ubyte* log2visGetEmbeddingLevels(string text, int length, PangoDirection* pbaseDir)

Return the bidirectional embedding levels of the input paragraph.

parseEnum
bool parseEnum(GType type, string str, int value, bool warn, string possibleValues)

Parses an enum type and stores the result in @value.

parseStretch
bool parseStretch(string str, PangoStretch stretch, bool warn)

Parses a font stretch.

parseStyle
bool parseStyle(string str, PangoStyle style, bool warn)

Parses a font style.

parseVariant
bool parseVariant(string str, PangoVariant variant, bool warn)

Parses a font variant.

parseWeight
bool parseWeight(string str, PangoWeight weight, bool warn)

Parses a font weight.

quantizeLineGeometry
void quantizeLineGeometry(int thickness, int position)

Quantizes the thickness and position of a line to whole device pixels.

readLine
int readLine(FILE* stream, StringG str)

Reads an entire line from a file into a buffer.

scanInt
bool scanInt(string pos, int out_)

Scans an integer.

scanString
bool scanString(string pos, StringG out_)

Scans a string into a #GString buffer.

scanWord
bool scanWord(string pos, StringG out_)

Scans a word into a #GString buffer.

skipSpace
bool skipSpace(string pos)

Skips 0 or more characters of white space.

splitFileList
string[] splitFileList(string str)

Splits a %G_SEARCHPATH_SEPARATOR-separated list of files, stripping white space and substituting ~/ with $HOME/.

trimString
string trimString(string str)

Trims leading and trailing whitespace from a string.

Meta