#ifndef _nds_trim_h # Define _nds_trim_h
#include
Namespace nds {
Inline string & ltrim (String & SS, INT) {String :: Iterator P = FIND_IF (ss.begin (), ss.end (), not1 (PTR_FUN (PF))); SS. ERASE (ss.begin (), p); return ss;}
Inline String & RTRIM (String & SS, INT) {String :: Reverse_iterator P = Find_IF (s.rbegin (), ss.rend (), NOT1 (PTR_FUN (PF))); SS. ERASE (P.Base (), ss.end ()); return ss;}
INLINE STRING & TRIM (String & St) {LTRIM (RTRIM (ST)); Return st;}
Inline void stringupper (string & str) {for (String :: item i = str.begin (); i! = str.end (); i ) * i = TouPper (* i);}
Inline void stringlower (string & str) {for (String :: itrator i = str.begin (); i! = str.end (); i ) * i = tolower (* i);}
Template
Template
Template
}
#ENDIF
For the operation of the string string to head tail blank characters, the new string is added to the T type operation function. One thing has not been resolved, it is a formatted problem when any type is converted to a string.