Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp
// Check for a CSS prefix.
// Passed prefix is all lowercase.
// First character of the prefix within the property name may be upper or lowercase.
// Other characters in the prefix within the property name must be lowercase.
// The prefix within the property name must be followed by a capital letter.
Check for a CSS prefix.
Passed prefix is all lowercase.
First character of the prefix within the property name may be upper or lowercase.
Other characters in the prefix within the property name must be lowercase.
The prefix within the property name must be followed by a capital letter.
Check for a CSS prefix . Passed prefix is all lowercase . First character of the prefix within the property name may be upper or lowercase . Other characters in the prefix within the property name must be lowercase . The prefix within the property name must be followed by a capital letter .
static bool hasCSSPropertyNamePrefix(const String& propertyName, const char* prefix)
{
#ifndef NDEBUG
    ASSERT(*prefix);
    for (const char* p = prefix; *p; ++p)
        ASSERT(isASCIILower(*p));
    ASSERT(propertyName.length());
#endif
    if (toASCIILower(propertyName[0]) != prefix[0])
        return false;
    unsigned length = propertyName.length();
    for (unsigned i = 1; i < length; ++i) {
        if (!prefix[i])
            return isASCIIUpper(propertyName[i]);
        if (propertyName[i] != prefix[i])
            return false;
    }
    return false;
}
static bool hasCSSPropertyNamePrefix ( const String & propertyName , const char * prefix ) { #ifndef NDEBUG ASSERT ( * prefix ) ; for ( const char * p = prefix ; * p ; ++ p ) ASSERT ( isASCIILower ( * p ) ) ; ASSERT ( propertyName . length ( ) ) ; #endif if ( toASCIILower ( propertyName [ 0 ] ) != prefix [ 0 ] ) return false ; unsigned length = propertyName . length ( ) ; for ( unsigned i = 1 ; i < length ; ++ i ) { if ( ! prefix [ i ] ) return isASCIIUpper ( propertyName [ i ] ) ; if ( propertyName [ i ] != prefix [ i ] ) return false ; } return false ; }
Check for a CSS prefix.
Check for a CSS prefix .