]> granicus.if.org Git - icu/commitdiff
ICU-9265 Removed _isAttributeSubtag, which is no longer used, from uloc_tag.c
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 5 Jun 2012 20:08:04 +0000 (20:08 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 5 Jun 2012 20:08:04 +0000 (20:08 +0000)
X-SVN-Rev: 31907

icu4c/source/common/uloc_tag.c

index 1bc32c2c93230fa45e0a97c960b5ec9eb2a87bf5..d62346f27f8b6540abb4a3ea7d5fe67e552f31a5 100644 (file)
@@ -309,20 +309,6 @@ _isPrivateuseVariantSubtag(const char* s, int32_t len) {
     return FALSE;
 }
 
-static UBool
-_isAttributeSubtag(const char* s, int32_t len) {
-    /*
-     * attribute     = 3*8alphanum
-     */
-    if (len < 0) {
-        len = (int32_t)uprv_strlen(s);
-    }
-    if (len >= 3 && len <= 8 && _isAlphaNumericString(s, len)) {
-        return TRUE;
-    }
-    return FALSE;
-}
-
 static UBool
 _isExtensionSingleton(const char* s, int32_t len) {
     /*