src/js/builtin/intl/NumberFormat.js
/**
 * Convert s to upper case, but limited to characters a-z.
 *
 * Spec: ECMAScript Internationalization API Specification, 6.1.
 */
Convert s to upper case, but limited to characters a-z.
Spec: ECMAScript Internationalization API Specification, 6.1.
Convert s to upper case but limited to characters a - z . Spec : ECMAScript Internationalization API Specification 6 . 1 .
function toASCIIUpperCase(s) {
    assert(typeof s === "string", "toASCIIUpperCase");
    var result = "";
    for (var i = 0; i < s.length; i++) {
        var c = callFunction(std_String_charCodeAt, s, i);
        result += (0x61 <= c && c <= 0x7A)
                  ? callFunction(std_String_fromCharCode, null, c & ~0x20)
                  : s[i];
    }
    return result;
}
function toASCIIUpperCase ( s ) { assert ( typeof s === "string" , "toASCIIUpperCase" ) ; var result = "" ; for ( var i = 0 ; i < s . length ; i ++ ) { var c = callFunction ( std_String_charCodeAt , s , i ) ; result += ( 0x61 <= c && c <= 0x7A ) ? callFunction ( std_String_fromCharCode , null , c & ~ 0x20 ) : s [ i ] ; } return result ; }
Convert s to upper case, but limited to characters a-z.
Convert s to upper case but limited to characters a - z .
// String.prototype.toUpperCase may map non-ASCII characters into ASCII, // so go character by character (actually code unit by code unit, but // since we only care about ASCII characters here, that's OK).