00001 // $Id: UTF8String.h 21 2010-09-05 04:18:17Z cschwarz1 $ 00002 00003 #ifndef BASE_UTF8STRING_H 00004 #define BASE_UTF8STRING_H 00005 00006 #include "String.h" 00007 00008 namespace base { 00010 00014 class PPBASE_EXPORT UTF8String { 00015 public: 00017 00021 static size_t charlen(unsigned char c); 00022 00024 00028 static size_t length(const String &s); 00029 00031 00037 static String substr(const String &s, size_t pos, size_t len = String::npos); 00038 00040 00044 static String &toLowerCase(String &s); 00045 }; 00046 } 00047 00048 #endif