-
Book Overview & Buying
-
Table Of Contents
C++ Windows Programming
By :
There are a small set of string functions:
CharPtrToGenericString: This takes text as a char character pointer and returns the same text as a generic String object. Remember that the String class holds values of the TCHAR type, of which many are char or wchar_t depending on system settings.
Split: This takes a string and returns a list of strings holding the space-separated words of the text.
IsNumeric: This returnstrue if the text holds a numeric value.
Trim: This removes spaces at the beginning and at the end of the text.
ReplaceAll: This replaces one string with another string.
WriteStringToStream and ReadStringFromStream: These write and read a string to and from a stream.
StartsWith and EndsWith: These returntrue if the text starts or ends with the subtext.
String.h
namespace SmallWindows {
extern String CharPtrToGenericString(char* text);
extern vector<String> Split(String text, TCHAR c = TEXT(' '));
extern bool IsNumeric(String text);
...