Identifying a Character's Properties

Use the corresponding IUnicode static member function to determine whether a character has a particular property. For example, this code shows how to iterate through a text object, replacing space characters with hyphens:

for (iter = someText.begin(); 
iter < someText.end() && IUnicode::isASpace(*iter); 
	++iter);

	someText.replace(someText.begin(), iter, 
		UGeneralPunctuation::kHyphen);


Character Properties