1/** 2 * CLDR JavaScript Library v0.5.1 3 * http://jquery.com/ 4 * 5 * Copyright 2013 Rafael Xavier de Souza 6 * Released under the MIT license 7 * http://jquery.org/license 8 * 9 * Date: 2019-01-21T13:43Z 10 */ 11/*! 12 * CLDR JavaScript Library v0.5.1 2019-01-21T13:43Z MIT license © Rafael Xavier 13 * http://git.io/h4lmVg 14 */ 15(function( factory ) { 16 17 if ( typeof define === "function" && define.amd ) { 18 // AMD. 19 define( [ "../cldr" ], factory ); 20 } else if ( typeof module === "object" && typeof module.exports === "object" ) { 21 // Node. CommonJS. 22 module.exports = factory( require( "../cldr" ) ); 23 } else { 24 // Global 25 factory( Cldr ); 26 } 27 28}(function( Cldr ) { 29 30 // Build optimization hack to avoid duplicating functions across modules. 31 var alwaysArray = Cldr._alwaysArray; 32 33 34 35 var supplementalMain = function( cldr ) { 36 37 var prepend, supplemental; 38 39 prepend = function( prepend ) { 40 return function( path ) { 41 path = alwaysArray( path ); 42 return cldr.get( [ prepend ].concat( path ) ); 43 }; 44 }; 45 46 supplemental = prepend( "supplemental" ); 47 48 // Week Data 49 // http://www.unicode.org/reports/tr35/tr35-dates.html#Week_Data 50 supplemental.weekData = prepend( "supplemental/weekData" ); 51 52 supplemental.weekData.firstDay = function() { 53 return cldr.get( "supplemental/weekData/firstDay/{territory}" ) || 54 cldr.get( "supplemental/weekData/firstDay/001" ); 55 }; 56 57 supplemental.weekData.minDays = function() { 58 var minDays = cldr.get( "supplemental/weekData/minDays/{territory}" ) || 59 cldr.get( "supplemental/weekData/minDays/001" ); 60 return parseInt( minDays, 10 ); 61 }; 62 63 // Time Data 64 // http://www.unicode.org/reports/tr35/tr35-dates.html#Time_Data 65 supplemental.timeData = prepend( "supplemental/timeData" ); 66 67 supplemental.timeData.allowed = function() { 68 return cldr.get( "supplemental/timeData/{territory}/_allowed" ) || 69 cldr.get( "supplemental/timeData/001/_allowed" ); 70 }; 71 72 supplemental.timeData.preferred = function() { 73 return cldr.get( "supplemental/timeData/{territory}/_preferred" ) || 74 cldr.get( "supplemental/timeData/001/_preferred" ); 75 }; 76 77 return supplemental; 78 79 }; 80 81 82 83 84 var initSuper = Cldr.prototype.init; 85 86 /** 87 * .init() automatically ran on construction. 88 * 89 * Overload .init(). 90 */ 91 Cldr.prototype.init = function() { 92 initSuper.apply( this, arguments ); 93 this.supplemental = supplementalMain( this ); 94 }; 95 96 return Cldr; 97 98 99 100 101}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.