Lines Matching defs:string
101 * A flag describing different modes of string creation.
108 * Create a new string, always allocating new storage memory.
113 * Acts as a hint that the string should be created in the
114 * old generation heap space and be deduplicated if an identical string
121 * A JavaScript string value (ECMA-262, 4.3.17).
134 * Returns the number of characters (UTF-16 code units) in this string.
140 * representation of this string.
145 * Returns whether this string is known to contain only one byte data,
147 * Does not read the string.
153 * Returns whether this string contain only one byte data,
155 * Will read the entire string in some cases.
160 * Write the contents of the string to an external buffer.
162 * enough to hold the entire string and NULL terminator. Copies
163 * the contents of the string and the NULL terminator into the
172 * \param buffer The buffer into which the string will be copied.
173 * \param start The starting position within the string at which
175 * \param length The number of characters to copy from the string. For
206 * A zero length string.
211 * Returns true if the string is external.
216 * Returns true if the string is both external and two-byte.
221 * Returns true if the string is both external and one-byte.
230 * If a string is cacheable, the value returned by
244 * Internally V8 will call this Dispose method when the external string
247 * control how allocated external string resources are disposed.
252 * For a non-cacheable string, the value returned by
254 * |Unlock()|, that is the string must behave as is |IsCacheable()| returned
265 * Unlocks the string.
276 * An ExternalStringResource is a wrapper around a two-byte string
279 * buffer. Note that the string data must be immutable.
290 * The string data from the underlying buffer. If the resource is cacheable
296 * The length of the string. That is, the number of two-byte characters.
327 * string buffer that resides outside V8's heap. Implement an
329 * underlying buffer. Note that the string data must be immutable
345 * The string data from the underlying buffer. If the resource is cacheable
350 /** The number of Latin-1 characters in the string.*/
379 * If the string is an external string, return the ExternalStringResourceBase
381 * string is returned in encoding_out.
387 * Get the ExternalStringResource for an external string. Returns
393 * Get the ExternalOneByteStringResource for an external one-byte string.
406 * Allocates a new string from a UTF-8 literal. This is equivalent to calling
410 * When called on a string literal containing '\0', the inferred length is the
422 /** Allocates a new string from UTF-8 data. Only returns an empty value when
428 /** Allocates a new string from Latin-1 data. Only returns an empty value
434 /** Allocates a new string from UTF-16 data. Only returns an empty value when
441 * Creates a new string by concatenating the left and the right strings
448 * Creates a new external string using the data defined in the given
449 * resource. When the external string is no longer live on V8's heap the
453 * destructor of the external string resource.
459 * Associate an external string resource with this string by transforming it
460 * in place so that existing references to this string in the JavaScript heap
461 * will use the external string resource. The external string resource's
462 * character contents need to be equivalent to this string.
463 * Returns true if the string has been changed to be an external string.
464 * The string is not modified if the operation fails. See NewExternal for
470 * Creates a new external string using the one-byte data defined in the given
471 * resource. When the external string is no longer live on V8's heap the
475 * destructor of the external string resource.
481 * Associate an external string resource with this string by transforming it
482 * in place so that existing references to this string in the JavaScript heap
483 * will use the external string resource. The external string resource's
484 * character contents need to be equivalent to this string.
485 * Returns true if the string has been changed to be an external string.
486 * The string is not modified if the operation fails. See NewExternal for
492 * Returns true if this string can be made external.
503 * you want to print the object. If conversion to a string fails
526 * Converts an object to a two-byte (UTF-16-encoded) string.
527 * If conversion to a string fails (eg. due to an exception in the toString()
563 // Zero-length string specialization (templated string size includes
577 virtual void VisitExternalString(Local<String> string) {}
586 * Returns the description string of the symbol, or undefined if none.