Methods |
Top Previous Next |
Scripts > Class elements and c++ instructions > Formatting instructions > Methods
unsigned int format::size() const
To get the number of characters in the formatted string, you can use the size() member function :
format formatter("%|+5|"); out << formatter % x; unsigned int n = formatter.size();
str format::str() const
Once all arguments have been fed into a format object, you can get its string value by using the str() member function:
format formatter("%|+5|"); formatter % x; str s = formatter.str();
void format::parse(const str& xs)
Clears the format object and parses a new format string
format formatter("%|+5|"); out << formatter % x; formatter.parse("%|+10|");
|
This page belongs to the TextTransformer Documentation |
Home Content German |