#endif
-
#include "compare.hh"
#if STD_STRING
typedef size_t ssize;
#define NPOS std::string::npos
- // typedef string std::string;
+
}
#else /* ! STD_STRING */
class String;
typedef int ssize;
#define NPOS -1
+
}
#include "string.hh"
namespace std {
- std::string to_string (std::string s);
- std::string to_string (char c, int n = 1);
- std::string to_string (int i, char const *format = 0);
- std::string to_string (double f, char const *format = 0);
- std::string to_string (long b);
- std::string to_string (bool b);
- std::string to_string (char const *format, ...);
+ string to_string (string s);
+ string to_string (char c, int n = 1);
+ string to_string (int i, char const *format = 0);
+ string to_string (double f, char const *format = 0);
+ string to_string (long b);
+ string to_string (bool b);
+ string to_string (char const *format, ...);
- std::string &replace_all (std::string &str, std::string find, std::string replace);
- std::string &replace_all (std::string &str, char find, char replace);
- char *string_copy (std::string s);
+ string &replace_all (string &str, string find, string replace);
+ string &replace_all (string &str, char find, char replace);
+ char *string_copy (string s);
- int string_compare (std::string const &, std::string const &);
- INSTANTIATE_COMPARE (std::string const &, string_compare);
+ int string_compare (string const &, string const &);
+
+ INSTANTIATE_COMPARE (string const &, string_compare);
}
+
#endif /* STD_STRING_HH */
String substitute (char find, char replace);
};
-#ifdef STRING_UTILS_INLINED
-#ifndef INLINE
-#define INLINE inline
-#endif
-#include "string.icc"
-/* we should be resetting INLINE. oh well. */
-#endif
-
// because char const* also has an operator ==, this is for safety:
bool operator == (String s1, char const *s2);
bool operator == (char const *s1, String s2);
}
-/*
- technically incorrect, but lets keep it here: this is a
- catch all place for this stuff.
-*/
-#include "international.hh"
-
+#ifdef STRING_UTILS_INLINED
+#ifndef INLINE
+#define INLINE inline
+#endif
+#include "string.icc"
+/* we should be resetting INLINE. oh well. */
+#endif
#endif /* STRING_HH */