cbp2make
Makefile generation tool for Code::Blocks IDE
|
Auxiliary functions for strings processing. More...
Functions | |
void | ShowStringList (const CString &Title, const CString &LinePrefix, const CStringList &StringList) |
Prints titled string list to standard output. More... | |
CString | MakefileFriendly (const CString &AString) |
Makes a makefile compatible identifier string from the given string. More... | |
CString | XMLFriendly (const CString &AString) |
Makes an XML compatible identifier string from the given string. More... | |
CString | FlatFileName (const CString &FileName) |
Converts given file path to another file name without path delimiters. More... | |
Auxiliary functions for strings processing.
FlatFileName | ( | const CString & | FileName | ) |
Converts given file path to another file name without path delimiters.
FileName | a file name possibly containing path to a file. |
Example: "path/to/file/source.o" will be converted to "path_to_file_source.o"
MakefileFriendly | ( | const CString & | AString | ) |
Makes a makefile compatible identifier string from the given string.
AString | an identifier name. |
Custom strings may contain characters that are not allowed inside makefile, therefore these characters are replaced with allowed characters (underscore, etc).
ShowStringList | ( | const CString & | Title, |
const CString & | LinePrefix, | ||
const CStringList & | StringList | ||
) |
Prints titled string list to standard output.
Title | title of the string list. |
LinePrefix | prefix string pritned at the beginning of each line. |
StringList | list of strings to display. |
XMLFriendly | ( | const CString & | AString | ) |
Makes an XML compatible identifier string from the given string.
AString | an identifier name. |
Custom strings may contain characters that are not allowed for XML tags, therefore these characters are replaced with allowed characters (underscore, etc).