30 #ifndef __NMV_USTRING_H__
31 #define __NMV_USTRING_H__
41 NEMIVER_BEGIN_NAMESPACE (
nemiver)
42 NEMIVER_BEGIN_NAMESPACE (
common)
49 UString (
const char *a_cstr,
long a_len=-1);
50 UString (
const unsigned char *a_cstr,
long a_len=-1);
51 UString (
const Glib::ustring &an_other_string);
52 UString (
const string &an_other_string);
55 UString& set (
const gchar* a_buf, gulong a_len);
56 static UString from_int (
long long an_int);
57 static size_t hexa_to_int (
const string &a_hexa_str);
58 bool is_integer ()
const;
59 UString& append_int (
long long an_int);
60 UString& assign_int (
long long);
61 UString& operator= (
const char *a_cstr);
62 UString& operator= (
const unsigned char *a_cstr);
64 bool operator! ()
const;
66 list<UString> split_to_list (
const UString &a_delim)
const;
68 static UString join (
const vector<UString> &a_elements,
70 static UString join (vector<UString>::const_iterator &a_from,
71 vector<UString>::const_iterator &a_to,
86 typedef basic_string<gunichar> super_type;
94 WString (
const super_type &a_str);
96 WString (
const char* a_str,
unsigned int a_len=-1);
98 WString (
const super_type::allocator_type &a);
108 const super_type::allocator_type &a);
111 super_type::size_type n,
112 const super_type::allocator_type &a=super_type::allocator_type());
115 const super_type::allocator_type &a=super_type::allocator_type());
119 const super_type::allocator_type &a=super_type::allocator_type());
121 WString& assign (
const char *a_str,
long a_len=-1);
126 super_type::size_type a_n);
128 WString& assign (
const gunichar *a_str,
129 super_type::size_type a_n);
131 WString& assign (
const gunichar *a_str);
133 WString& assign (super_type::size_type a_n, gunichar a_c);
141 NEMIVER_END_NAMESPACE (
common)
142 NEMIVER_END_NAMESPACE (
nemiver)