ICU-4078 Remove unused code.

X-SVN-Rev: 16283
This commit is contained in:
George Rhoten 2004-09-09 06:26:00 +00:00
parent 587e2cef3e
commit 3dad571a44
2 changed files with 0 additions and 73 deletions

View file

@ -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;

View file

@ -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);