sources/mystring.h

changeset 53
8f1a6f40d1b4
parent 14
33b8f428bacb
child 60
268721e6be20
equal deleted inserted replaced
52:ae5b486f6882 53:8f1a6f40d1b4
71 METHOD ends_with (const String& other) -> bool; 71 METHOD ends_with (const String& other) -> bool;
72 METHOD find (const char* c, int a = 0) const -> int; 72 METHOD find (const char* c, int a = 0) const -> int;
73 METHOD to_lowercase() const -> String; 73 METHOD to_lowercase() const -> String;
74 inline METHOD index_difference (int a, int b) -> int; 74 inline METHOD index_difference (int a, int b) -> int;
75 inline METHOD insert (int pos, char c) -> void; 75 inline METHOD insert (int pos, char c) -> void;
76 inline METHOD insert (int pos, const char* c) -> void;
76 inline METHOD is_empty() const -> bool; 77 inline METHOD is_empty() const -> bool;
77 METHOD is_numeric() const -> bool; 78 METHOD is_numeric() const -> bool;
78 METHOD find_last (const char* c, int a = -1) const -> int; 79 METHOD find_last (const char* c, int a = -1) const -> int;
79 inline METHOD length() const -> int; 80 inline METHOD length() const -> int;
80 METHOD mask_against (const String& pattern) const -> bool; 81 METHOD mask_against (const String& pattern) const -> bool;
240 { 241 {
241 m_string.insert (m_string.begin() + pos, c); 242 m_string.insert (m_string.begin() + pos, c);
242 } 243 }
243 244
244 // ------------------------------------------------------------------------------------------------- 245 // -------------------------------------------------------------------------------------------------
246 //
247 inline METHOD
248 String::insert (int pos, const char* c) -> void
249 {
250 m_string.insert (pos, c);
251 }
252
253 // -------------------------------------------------------------------------------------------------
245 254
246 inline METHOD 255 inline METHOD
247 String::length() const -> int 256 String::length() const -> int
248 { 257 {
249 return m_string.length(); 258 return m_string.length();

mercurial