next up previous contents
Next: Parsing Groups Up: Str Class Documentation Previous: Handling I/O   Contents

Parsing and Formatting

This chapter talks about the parsing and formatting functions that are a part of the Str class. Note that the Str class does not try to provide every imaginable function but does try to provide functions that make parsing through string data in files convenient. Most of the functions not provided can be found in the C standard library and can be easily used. For example, there is no atoi() function built-into the Str class but using the standard atoi() is trivial:

Str str_x = "10";
int x = atoi(str_x);

Note that the auto-cast to const char* that Str provides makes using C-library routines simple.



Subsections

2007-05-05