diff options
Diffstat (limited to 'innobase/ut/ut0byte.c')
-rw-r--r-- | innobase/ut/ut0byte.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/innobase/ut/ut0byte.c b/innobase/ut/ut0byte.c index 8764103dc36..cc83aacc90b 100644 --- a/innobase/ut/ut0byte.c +++ b/innobase/ut/ut0byte.c @@ -29,51 +29,3 @@ ut_dulint_sort(dulint* arr, dulint* aux_arr, ulint low, ulint high) UT_SORT_FUNCTION_BODY(ut_dulint_sort, arr, aux_arr, low, high, ut_dulint_cmp); } - -/**************************************************************** -Copies a string to a memory location, setting characters to lower case. */ - -void -ut_cpy_in_lower_case( -/*=================*/ - char* dest, /* in: destination */ - const char* source, /* in: source */ - ulint len) /* in: string length */ -{ - ulint i; - - for (i = 0; i < len; i++) { - dest[i] = tolower(source[i]); - } -} - -/**************************************************************** -Compares two strings when converted to lower case. */ - -int -ut_cmp_in_lower_case( -/*=================*/ - /* out: -1, 0, 1 if str1 < str2, str1 == str2, - str1 > str2, respectively */ - const char* str1, /* in: string1 */ - const char* str2) /* in: string2 */ -{ - for (;;) { - int c1, c2; - if (!*str1) { - return(*str2 ? -1 : 0); - } else if (!*str2) { - return 1; - } - c1 = tolower(*str1++); - c2 = tolower(*str2++); - if (c1 < c2) { - return(-1); - } - if (c1 > c2) { - return(1); - } - } - - return(0); -} |