From 3dad571a446681cfaa2b15eaf90a2ecafd1d6d99 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Thu, 9 Sep 2004 06:26:00 +0000 Subject: [PATCH] ICU-4078 Remove unused code. X-SVN-Rev: 16283 --- icu4c/source/tools/toolutil/uparse.c | 66 ---------------------------- icu4c/source/tools/toolutil/uparse.h | 7 --- 2 files changed, 73 deletions(-) diff --git a/icu4c/source/tools/toolutil/uparse.c b/icu4c/source/tools/toolutil/uparse.c index 81264552035..fd792b52512 100644 --- a/icu4c/source/tools/toolutil/uparse.c +++ b/icu4c/source/tools/toolutil/uparse.c @@ -313,72 +313,6 @@ u_parseCodePointRange(const char *s, } } - -U_CAPI const UChar * U_EXPORT2 -u_strSkipWhiteSpace(const UChar *s, int32_t length) { - int32_t i = 0, toReturn = 0; - UChar32 c = 0; - if(s == NULL) { - return NULL; - } - if(length == 0) { - return s; - } - if(length > 0) { - for(;;) { - if(i >= length) { - break; - } - toReturn = i; - U16_NEXT(s, i, length, c); - if(!(c == 0x20 || u_isUWhiteSpace(c))) { - break; - } - } - } else { - for(;;) { - toReturn = i; - U16_NEXT(s, i, length, c); - if(!(c == 0x20 || u_isUWhiteSpace(c)) || c == 0) { - break; - } - } - } - return s+toReturn; -} - - -U_CAPI const UChar * U_EXPORT2 -u_strTrailingWhiteSpaceStart(const UChar *s, int32_t length) { - int32_t i = 0, toReturn = 0; - UChar32 c = 0; - - if(s == NULL) { - return NULL; - } - if(length == 0) { - return s; - } - - if(length < 0) { - length = u_strlen(s); - } - - i = length; - for(;;) { - toReturn = i; - if(i <= 0) { - break; - } - U16_PREV(s, 0, i, c); - if(!(c == 0x20 || u_isUWhiteSpace(c))) { - break; - } - } - - return s+toReturn; -} - U_CAPI int32_t U_EXPORT2 u_parseUTF8(const char *source, int32_t sLen, char *dest, int32_t destCapacity, UErrorCode *status) { const char *read = source; diff --git a/icu4c/source/tools/toolutil/uparse.h b/icu4c/source/tools/toolutil/uparse.h index 7f7b8f3d636..a74772f2039 100644 --- a/icu4c/source/tools/toolutil/uparse.h +++ b/icu4c/source/tools/toolutil/uparse.h @@ -118,13 +118,6 @@ u_parseCodePointRange(const char *s, UErrorCode *pErrorCode); -U_CAPI const UChar * U_EXPORT2 -u_strSkipWhiteSpace(const UChar *s, int32_t length); - - -U_CAPI const UChar * U_EXPORT2 -u_strTrailingWhiteSpaceStart(const UChar *s, int32_t length); - U_CAPI int32_t U_EXPORT2 u_parseUTF8(const char *source, int32_t sLen, char *dest, int32_t destCapacity, UErrorCode *status);