Home | History | Annotate | Download | only in src

Lines Matching defs:String

30 String.prototype.startsWith = function (str) {
70 if (typeof name === 'string' && name.startsWith(last)) {
148 // Convert the JSON string to an object.
324 // Trim string for leading and trailing whitespace.
2322 * @param {string} json - raw protocol packet as JSON string.
2339 * @return {String} the packet type
2430 * @return {String} the value type
2502 * Check is the value is a string.
2503 * @return {boolean} true if the value is a string
2506 return this.value_.type == 'string';
2551 * @return {string} property name
2585 * Check is the value is a string.
2586 * @return {boolean} true if the value is a string
2624 return String(value);
2629 return String(value);
2656 * Convert a String to its JSON representation (see http://www.json.org/). To
2657 * avoid depending on the String object this method calls the functions in
2658 * string.js directly and not through the value.
2659 * @param {String} value The String value to format as JSON
2660 * @return {string} JSON formatted String value
2681 // Simple string with no special characters.
2691 * @return {string} JSON formatted Date value
2715 * @return {string} JSON formatted Date value
2724 * This implementation simply runs through all string property names and adds
2731 * @return {string} JSON formatted object value
2736 // Only consider string keys.
2737 if (typeof key == 'string') {
2763 case 'string':
2787 * @return {string} JSON formatted array value
2805 } else if (typeof(elem) === 'string') {