tango.text.Ascii

Members

Functions

compare
int compare(const(char[]) s1, const(char[]) s2)

Compare two char[] with case. Returns 0 if equal

icompare
int icompare(const(char[]) s1, const(char[]) s2)

Compare two char[] ignoring case. Returns 0 if equal

isearch
size_t isearch(char[] src, char[] pattern)

Return the index position of a text pattern within src, or src.length upon failure.

main
void main()
Undocumented in source. Be warned that the author may not have intended to support it.
toLower
char[] toLower(char[] src)

Convert to lowercase in-place.

toLower
char[] toLower(const(char[]) src, char[] dst)

Convert to lowercase. Returns the converted content in dst.

toUpper
char[] toUpper(char[] src)

Convert to uppercase in-place.

toUpper
char[] toUpper(const(char[]) src, char[] dst)

Convert to uppercase. Returns the converted content in dst.

Meta

License

BSD style: $(LICENSE)

Version

Dec 2006: Initial release

Authors

Kris

Placeholder for a selection of ASCII utilities. These generally will not work with utf8, and cannot be easily extended to utf16 or utf32