summaryrefslogtreecommitdiff
path: root/include/iprt/string.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /include/iprt/string.h
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'include/iprt/string.h')
-rw-r--r--include/iprt/string.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/include/iprt/string.h b/include/iprt/string.h
index 1f52c75d..fdc44fa6 100644
--- a/include/iprt/string.h
+++ b/include/iprt/string.h
@@ -166,7 +166,7 @@ RT_C_DECLS_BEGIN
#define RTSTR_MAX (~(size_t)0)
-/** @def RTMEM_TAG
+/** @def RTSTR_TAG
* The default allocation tag used by the RTStr allocation APIs.
*
* When not defined before the inclusion of iprt/string.h, this will default to
@@ -2412,6 +2412,31 @@ RTDECL(char *) RTStrToLower(char *psz);
RTDECL(char *) RTStrToUpper(char *psz);
/**
+ * Checks if the string is case foldable, i.e. whether it would change if
+ * subject to RTStrToLower or RTStrToUpper.
+ *
+ * @returns true / false
+ * @param psz The string in question.
+ */
+RTDECL(bool) RTStrIsCaseFoldable(const char *psz);
+
+/**
+ * Checks if the string is upper cased (no lower case chars in it).
+ *
+ * @returns true / false
+ * @param psz The string in question.
+ */
+RTDECL(bool) RTStrIsUpperCased(const char *psz);
+
+/**
+ * Checks if the string is lower cased (no upper case chars in it).
+ *
+ * @returns true / false
+ * @param psz The string in question.
+ */
+RTDECL(bool) RTStrIsLowerCased(const char *psz);
+
+/**
* Find the length of a zero-terminated byte string, given
* a max string length.
*