summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/StringUtil.h
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-05-12 10:21:51 -0400
committerBernard Normier <bernard@zeroc.com>2016-05-12 10:21:51 -0400
commit6ea27c2fc2478cea6a42bad30e746f7ebf9c69af (patch)
treea52106addf73a73fbeb5e33c26ff9f8908b62a24 /cpp/include/IceUtil/StringUtil.h
parentUWP test suite fixes (diff)
downloadice-6ea27c2fc2478cea6a42bad30e746f7ebf9c69af.tar.bz2
ice-6ea27c2fc2478cea6a42bad30e746f7ebf9c69af.tar.xz
ice-6ea27c2fc2478cea6a42bad30e746f7ebf9c69af.zip
Renamed ICE_UTIL_API to ICE_API and other cleanups
Diffstat (limited to 'cpp/include/IceUtil/StringUtil.h')
-rw-r--r--cpp/include/IceUtil/StringUtil.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/cpp/include/IceUtil/StringUtil.h b/cpp/include/IceUtil/StringUtil.h
index 8aca611fac3..2e0763e7a46 100644
--- a/cpp/include/IceUtil/StringUtil.h
+++ b/cpp/include/IceUtil/StringUtil.h
@@ -20,29 +20,29 @@ namespace IceUtilInternal
// Add escape sequences (like "\n", or "\0xxx") to make a string
// readable in ASCII.
//
-ICE_UTIL_API std::string escapeString(const std::string&, const std::string&);
+ICE_API std::string escapeString(const std::string&, const std::string&);
//
// Remove escape sequences added by escapeString. Throws IllegalArgumentException
// for an invalid input string.
//
-ICE_UTIL_API std::string unescapeString(const std::string&, std::string::size_type, std::string::size_type);
+ICE_API std::string unescapeString(const std::string&, std::string::size_type, std::string::size_type);
//
// Split a string using the given delimiters. Considers single and double quotes;
// returns false for unbalanced quote, true otherwise.
//
-ICE_UTIL_API bool splitString(const std::string&, const std::string&, std::vector<std::string>&);
+ICE_API bool splitString(const std::string&, const std::string&, std::vector<std::string>&);
//
// Join a list of strings using the given delimiter.
//
-ICE_UTIL_API std::string joinString(const std::vector<std::string>&, const std::string&);
+ICE_API std::string joinString(const std::vector<std::string>&, const std::string&);
//
// Trim white space
//
-ICE_UTIL_API std::string trim(const std::string&);
+ICE_API std::string trim(const std::string&);
//
// If a single or double quotation mark is found at the start
@@ -51,7 +51,7 @@ ICE_UTIL_API std::string trim(const std::string&);
// 0 is returned. If no matching closing quote is found, then
// std::string::npos is returned.
//
-ICE_UTIL_API std::string::size_type checkQuote(const std::string&, std::string::size_type = 0);
+ICE_API std::string::size_type checkQuote(const std::string&, std::string::size_type = 0);
//
// Match `s' against the pattern `pat'. A * in the pattern acts
@@ -59,16 +59,16 @@ ICE_UTIL_API std::string::size_type checkQuote(const std::string&, std::string::
// other than a period (`.'). We match by hand here because
// it's portable across platforms (whereas regex() isn't).
//
-ICE_UTIL_API bool match(const std::string&, const std::string&, bool = false);
+ICE_API bool match(const std::string&, const std::string&, bool = false);
//
// Get the error message for the last error code or given error code.
//
-ICE_UTIL_API std::string lastErrorToString();
+ICE_API std::string lastErrorToString();
#ifdef _WIN32
-ICE_UTIL_API std::string errorToString(int, LPCVOID = NULL);
+ICE_API std::string errorToString(int, LPCVOID = NULL);
#else
-ICE_UTIL_API std::string errorToString(int);
+ICE_API std::string errorToString(int);
#endif
//
@@ -76,15 +76,15 @@ ICE_UTIL_API std::string errorToString(int);
// UTF8 string/characters but ignore non ASCII characters. Unlike, the
// C methods, these methods are not local dependent.
//
-ICE_UTIL_API std::string toLower(const std::string&);
-ICE_UTIL_API std::string toUpper(const std::string&);
-ICE_UTIL_API bool isAlpha(char);
-ICE_UTIL_API bool isDigit(char);
+ICE_API std::string toLower(const std::string&);
+ICE_API std::string toUpper(const std::string&);
+ICE_API bool isAlpha(char);
+ICE_API bool isDigit(char);
//
// Remove all whitespace from a string
//
-ICE_UTIL_API std::string removeWhitespace(const std::string&);
+ICE_API std::string removeWhitespace(const std::string&);
}