From fb123f93f9f5ce42c8e5785d2f8e0edaf951740e Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 26 Mar 2014 19:21:20 +0000 Subject: Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2. --- include/iprt/string.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'include/iprt/string.h') 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 @@ -2411,6 +2411,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. -- cgit v1.2.1