| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 4 | 3 | 4 | 0.958 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 118 | Closure/closure/goog/locale/formatting.js |
| 2 | 4 | 137 | Closure/closure/goog/locale/formatting.js |
| 3 | 4 | 156 | Closure/closure/goog/locale/formatting.js |
| ||||
/**
* Parse a string using the format as specified in pattern string, and
* return date in the passed "date" parameter.
*
* @param {string} pattern specifies how the date should be formatted.
* @param {string} text The string that need to be parsed.
* @param {number} start The character position in "text" where parse begins.
* @param {Date} date The date object that will hold parsed value.
*
* @return {number} The number of characters advanced or 0 if failed.
* @deprecated Use goog.i18n.DateTimeParse.
*/
goog.locale.parseDateTime= function (pattern, text, start, date){
var parser= new goog.locale.DateTimeParse( );
parser.applyPattern(pattern);
return parser.parse(text, start, date);
} ;
|
| ||||
/**
* Parse a string using the format as specified in pattern string, and
* return date in the passed "date" parameter.
*
* @param {string} pattern specifies how the date should be formatted.
* @param {string} text The string that need to be parsed.
* @param {number} start The character position in "text" where parse begins.
* @param {Date} date used to hold the parsed value.
*
* @return {number} The number of characters advanced or 0 if failed.
* @deprecated Use goog.i18n.DateTimeParse.
*/
goog.locale.strictParseDateTime= function (pattern, text, start, date){
var parser= new goog.locale.DateTimeParse( );
parser.applyPattern(pattern);
return parser.strictParse(text, start, date);
} ;
|
| ||||
/**
* Parse a string using a predefined date/time pattern.
*
* @param {number} formatType identifies a predefined pattern stored in
* locale specific repository.
* @param {string} text The string that needs to be parsed.
* @param {number} start parse start position in "text".
* @param {Date} date used to hold the parsed value.
*
* @return {number} The number of characters advanced or 0 if failed.
* @deprecated Use goog.i18n.DateTimeParse.
*/
goog.locale.standardParseDateTime= function (formatType, text, start, date){
var parser= new goog.locale.DateTimeParse( );
parser.applyStandardPattern(formatType);
return parser.parse(text, start, date);
} ;
|
| |||
/**
* Parse a string using a predefined date/time pattern.
*
* @param {number} formatType identifies a predefined pattern stored in
* locale specific repository.
* @param {string} text The string that needs to be parsed.
* @param {number} start parse start position in "text".
* @param {Date} date used to hold the parsed value.
*
* @return {number} The number of characters advanced or 0 if failed.
* @deprecated Use goog.i18n.DateTimeParse.
*/
/**
* Parse a string using the format as specified in pattern string, and
* return date in the passed "date" parameter.
*
* @param {string} pattern specifies how the date should be formatted.
* @param {string} text The string that need to be parsed.
* @param {number} start The character position in "text" where parse begins.
* @param {Date} date used to hold the parsed value.
*
* @return {number} The number of characters advanced or 0 if failed.
* @deprecated Use goog.i18n.DateTimeParse.
*/
/**
* Parse a string using the format as specified in pattern string, and
* return date in the passed "date" parameter.
*
* @param {string} pattern specifies how the date should be formatted.
* @param {string} text The string that need to be parsed.
* @param {number} start The character position in "text" where parse begins.
* @param {Date} date The date object that will hold parsed value.
*
* @return {number} The number of characters advanced or 0 if failed.
* @deprecated Use goog.i18n.DateTimeParse.
*/
goog.locale. [[#variable571e8580]]= function ( [[#variable571e8520]],text,start,date)
{ var parser=new goog.locale.DateTimeParse( );
parser. [[#variable571e84c0]]( [[#variable571e8520]]);
return parser. [[#variable571e8460]](text,start,date);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#571e8580]] | standardParseDateTime |
| 1 | 2 | [[#571e8580]] | strictParseDateTime |
| 1 | 3 | [[#571e8580]] | parseDateTime |
| 2 | 1 | [[#571e8520]] | formatType |
| 2 | 2 | [[#571e8520]] | pattern |
| 2 | 3 | [[#571e8520]] | pattern |
| 3 | 1 | [[#571e84c0]] | applyStandardPattern |
| 3 | 2 | [[#571e84c0]] | applyPattern |
| 3 | 3 | [[#571e84c0]] | applyPattern |
| 4 | 1 | [[#571e8460]] | parse |
| 4 | 2 | [[#571e8460]] | strictParse |
| 4 | 3 | [[#571e8460]] | parse |