sources/mystring.h

changeset 53
8f1a6f40d1b4
parent 14
33b8f428bacb
child 60
268721e6be20
--- a/sources/mystring.h	Tue Dec 16 00:17:15 2014 +0200
+++ b/sources/mystring.h	Tue Dec 16 00:52:39 2014 +0200
@@ -73,6 +73,7 @@
 	       METHOD to_lowercase() const -> String;
 	inline METHOD index_difference (int a, int b) -> int;
 	inline METHOD insert (int pos, char c) -> void;
+	inline METHOD insert (int pos, const char* c) -> void;
 	inline METHOD is_empty() const -> bool;
 	       METHOD is_numeric() const -> bool;
 	       METHOD find_last (const char* c, int a = -1) const -> int;
@@ -242,6 +243,14 @@
 }
 
 // -------------------------------------------------------------------------------------------------
+//
+inline METHOD
+String::insert (int pos, const char* c) -> void
+{
+	m_string.insert (pos, c);
+}
+
+// -------------------------------------------------------------------------------------------------
 
 inline METHOD
 String::length() const -> int

mercurial