Loading mysys/mf_casecnv.c +39 −4 Original line number Diff line number Diff line Loading @@ -28,7 +28,21 @@ #include <m_string.h> #endif /* string to uppercase */ /* Upcase string SYNOPSIS str IN/OUT String to upcase RETURN VALUE none DESCRIPTION Function changes input parameter so all chars it consist from are replaced with matching one in upper case. String should be writable with exception read-only empty string constant is handled correctly. */ void caseup_str(my_string str) { Loading @@ -45,11 +59,29 @@ void caseup_str(my_string str) } else #endif while ((*str = toupper(*str)) != 0) while (*str!=0) /* iterate till the end of string */ { *str= toupper(*str); str++; } } /* caseup_str */ /* string to lowercase */ /* Downcase string SYNOPSIS str IN/OUT String to downcase RETURN VALUE none DESCRIPTION Function changes input parameter so all chars it consist from are replaced with matching one in lower case. String should be writable with exception read-only empty string constant is handled correctly. */ void casedn_str(my_string str) { Loading @@ -66,8 +98,11 @@ void casedn_str(my_string str) } else #endif while ((*str= tolower(*str)) != 0) while (*str!=0) /* iterate till the end of string */ { *str= tolower(*str); str++; } } /* casedn_str */ Loading Loading
mysys/mf_casecnv.c +39 −4 Original line number Diff line number Diff line Loading @@ -28,7 +28,21 @@ #include <m_string.h> #endif /* string to uppercase */ /* Upcase string SYNOPSIS str IN/OUT String to upcase RETURN VALUE none DESCRIPTION Function changes input parameter so all chars it consist from are replaced with matching one in upper case. String should be writable with exception read-only empty string constant is handled correctly. */ void caseup_str(my_string str) { Loading @@ -45,11 +59,29 @@ void caseup_str(my_string str) } else #endif while ((*str = toupper(*str)) != 0) while (*str!=0) /* iterate till the end of string */ { *str= toupper(*str); str++; } } /* caseup_str */ /* string to lowercase */ /* Downcase string SYNOPSIS str IN/OUT String to downcase RETURN VALUE none DESCRIPTION Function changes input parameter so all chars it consist from are replaced with matching one in lower case. String should be writable with exception read-only empty string constant is handled correctly. */ void casedn_str(my_string str) { Loading @@ -66,8 +98,11 @@ void casedn_str(my_string str) } else #endif while ((*str= tolower(*str)) != 0) while (*str!=0) /* iterate till the end of string */ { *str= tolower(*str); str++; } } /* casedn_str */ Loading