String routines to complement <string> && <cstring>:
|
Go to the documentation of this file.
21 void tolower( std::string& line );
23 bool isalpha(
const std::string& line );
24 bool is_blank(
const std::string& word );
25 bool issuffix(
const char* str,
const char* suffix );
27 unsigned digitCount(
const std::string& str ,
unsigned i );
28 unsigned alphaCount(
const std::string& str ,
unsigned i );
30 unsigned str2uint(
const std::string& str );
31 std::string
tostring(
unsigned n,
unsigned width );
32 void tostring(
unsigned N,
unsigned width,
char *str );
33 char *
strdel(
char *str,
size_t from,
size_t len);
34 char *
strdel2(
char *str,
size_t len);
37 inline bool isdash(
char c ) {
return c==
'-' || c==
'_' || c==
'~'; }
49 return (
isalpha(ch) || ch==
'-' || ch==
'.' || ch==
'_' );
54 "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"
56 "AAAAAAECEEEEIIIIDNOOOOOx0UUUUYPsaaaaaaeceeeeiiiiOnooooo/0uuuuypy"
63 const std::string& renglon,
64 std::list<std::string>& L,
65 const char* delimiters
68 #endif // string_tool_h