summaryrefslogtreecommitdiff
path: root/include/iprt/string.h
diff options
context:
space:
mode:
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.
*