sources/mystring.h

changeset 14
33b8f428bacb
parent 12
8d0d1b368de0
child 53
8f1a6f40d1b4
equal deleted inserted replaced
13:09dcaeaa216b 14:33b8f428bacb
81 METHOD md5() const -> String; 81 METHOD md5() const -> String;
82 METHOD mid (long a, long b = -1) const -> String; 82 METHOD mid (long a, long b = -1) const -> String;
83 inline METHOD modify_index (int& a) -> void; 83 inline METHOD modify_index (int& a) -> void;
84 METHOD normalize (int (*filter)(int) = &std::isspace) -> void; 84 METHOD normalize (int (*filter)(int) = &std::isspace) -> void;
85 inline METHOD prepend (String a) -> void; 85 inline METHOD prepend (String a) -> void;
86 inline METHOD remove (int pos) -> void;
87 inline METHOD remove (int pos, int len) -> void; 86 inline METHOD remove (int pos, int len) -> void;
87 inline METHOD remove_at (int pos) -> void;
88 inline METHOD remove_from_end (int len) -> void; 88 inline METHOD remove_from_end (int len) -> void;
89 inline METHOD remove_from_start (int len) -> void; 89 inline METHOD remove_from_start (int len) -> void;
90 METHOD replace (const char* a, const char* b) -> void; 90 METHOD replace (const char* a, const char* b) -> void;
91 inline METHOD replace (int pos, int n, const String& a) -> void; 91 inline METHOD replace (int pos, int n, const String& a) -> void;
92 inline METHOD shrink_to_fit() -> void; 92 inline METHOD shrink_to_fit() -> void;
226 } 226 }
227 227
228 // ------------------------------------------------------------------------------------------------- 228 // -------------------------------------------------------------------------------------------------
229 229
230 inline METHOD 230 inline METHOD
231 String::remove (int pos) -> void 231 String::remove_at (int pos) -> void
232 { 232 {
233 m_string.erase (m_string.begin() + pos); 233 m_string.erase (m_string.begin() + pos);
234 } 234 }
235 235
236 // ------------------------------------------------------------------------------------------------- 236 // -------------------------------------------------------------------------------------------------

mercurial