Lines Matching refs:token

7734 function addFormatToken (token, padded, ordinal, callback) {
7741 if (token) {
7742 formatTokenFunctions[token] = func;
7751 return this.localeData().ordinal(func.apply(this, arguments), token);
7839 function addRegexToken (token, regex, strictRegex) {
7840 regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
7845 function getParseRegexForToken (token, config) {
7846 if (!hasOwnProp(regexes, token)) {
7847 return new RegExp(unescapeFormat(token));
7850 return regexes[token](config._strict, config._locale);
7866 function addParseToken (token, callback) {
7868 if (typeof token === 'string') {
7869 token = [token];
7876 for (i = 0; i < token.length; i++) {
7877 tokens[token[i]] = func;
7881 function addWeekParseToken (token, callback) {
7882 addParseToken(token, function (input, array, config, token) {
7884 callback(input, config._w, config, token);
7888 function addTimeToArrayFromToken(token, input, config) {
7889 if (input != null && hasOwnProp(tokens, token)) {
7890 tokens[token](input, config._a, config, token);
7964 addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
7965 var month = config._locale.monthsParse(input, token, config._strict);
8363 addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
8364 week[token.substr(0, 1)] = toInt(input);
8445 addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
8446 var weekday = config._locale.weekdaysParse(input, token, config._strict);
8455 addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
8456 week[token] = toInt(input);
8785 function meridiem (token, lowercase) {
8786 addFormatToken(token, 0, 0, function () {
9480 i, parsedInput, tokens, token, skipped,
9487 token = tokens[i];
9488 parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
9500 if (formatTokenFunctions[token]) {
9505 getParsingFlags(config).unusedTokens.push(token);
9507 addTimeToArrayFromToken(token, parsedInput, config);
9510 getParsingFlags(config).unusedTokens.push(token);
9861 function offset (token, separator) {
9862 addFormatToken(token, 0, 0, function () {
10618 function addWeekYearFormatToken (token, getter) {
10619 addFormatToken(0, [token, token.length], 0, getter);
10649 addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
10650 week[token.substr(0, 2)] = toInt(input);
10653 addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
10654 week[token] = hooks.parseTwoDigitYear(input);
10878 var token;
10879 for (token = 'SSSS'; token.length <= 9; token += 'S') {
10880 addRegexToken(token, matchUnsigned);
10887 for (token = 'S'; token.length <= 9; token += 'S') {
10888 addParseToken(token, parseMs);