sources/mystring.h

branch
protocol5
changeset 103
b78c0ca832a9
parent 84
3bd32eec3d57
child 106
7b156b764d11
--- a/sources/mystring.h	Wed May 27 21:15:52 2015 +0300
+++ b/sources/mystring.h	Sat Jan 09 02:20:28 2016 +0200
@@ -95,6 +95,7 @@
 	void insert (int pos, const char*c) { m_string.insert (pos, c); }
 	void modify_index (int &a) { if (a < 0) { a = length() - a; } }
 	void normalize (int (*filter)(int) = &std::isspace);
+	String normalized (int (*filter)(int) = &std::isspace) const;
 	void prepend (String a) { m_string = (a + m_string).std_string(); }
 	void remove (int pos, int len) { m_string.replace (pos, len, ""); }
 	void remove_at (int pos) { m_string.erase (m_string.begin() + pos); }
@@ -104,7 +105,6 @@
 	void replace (int pos, int n, const String &a) { m_string.replace (pos, n, a.chars()); }
 	void shrink_to_fit() { m_string.shrink_to_fit(); }
 	void __cdecl sprintf (const char* fmtstr, ...);
-	void sprintf (const char* fmtstr, ...);
 	void vsprintf (const char* fmtstr, va_list args);
 	bool starts_with (const String &other) const;
 	String strip (char unwanted) { return strip ({unwanted}); }

mercurial