Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

String Namespace Reference

General-purpose string utility functions. More...


Functions

template<classT> string stringrep (const T& item)
 Convert the given item (such as an integer or a float) into a string. More...

template<classString> bool non_numeric_basename_matches (const String& a, const String& b)
 Returns true if the two strings of any type match up to trailing digits. More...

template<classT, classString> T numeric_extension (const String& a)
 Converts any trailing digits to the given type and returns them; result is undefined if there are no digits at the end. More...


Detailed Description

General-purpose string utility functions.


Function Documentation

template<classString>
bool String::non_numeric_basename_matches ( const String & a,
const String & b )
 

Returns true if the two strings of any type match up to trailing digits.

Definition at line 32 of file stringutils.h.

Referenced by Eyes::activate().

template<classT, classString>
T String::numeric_extension ( const String & a )
 

Converts any trailing digits to the given type and returns them; result is undefined if there are no digits at the end.

Definition at line 43 of file stringutils.h.

template<classT>
string String::stringrep ( const T & item )
 

Convert the given item (such as an integer or a float) into a string.

Specializations are required for objects that don't support the << operator or for whom the << output is inappropriate.

Definition at line 21 of file stringutils.h.

Referenced by WorldViews::define().


Generated at Mon Aug 21 00:31:29 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000