Lines Matching defs:string
102 * A flag describing different modes of string creation.
109 * Create a new string, always allocating new storage memory.
114 * Acts as a hint that the string should be created in the
115 * old generation heap space and be deduplicated if an identical string
122 * A JavaScript string value (ECMA-262, 4.3.17).
135 * Returns the number of characters (UTF-16 code units) in this string.
141 * representation of this string.
146 * Returns whether this string is known to contain only one byte data,
148 * Does not read the string.
154 * Returns whether this string contain only one byte data,
156 * Will read the entire string in some cases.
161 * Write the contents of the string to an external buffer.
163 * enough to hold the entire string and NULL terminator. Copies
164 * the contents of the string and the NULL terminator into the
173 * \param buffer The buffer into which the string will be copied.
174 * \param start The starting position within the string at which
176 * \param length The number of characters to copy from the string. For
207 * A zero length string.
212 * Returns true if the string is external.
217 * Returns true if the string is both external and two-byte.
222 * Returns true if the string is both external and one-byte.
231 * If a string is cacheable, the value returned by
245 * Internally V8 will call this Dispose method when the external string
248 * control how allocated external string resources are disposed.
253 * For a non-cacheable string, the value returned by
255 * |Unlock()|, that is the string must behave as is |IsCacheable()| returned
266 * Unlocks the string.
278 * An ExternalStringResource is a wrapper around a two-byte string
281 * buffer. Note that the string data must be immutable.
292 * The string data from the underlying buffer. If the resource is cacheable
298 * The length of the string. That is, the number of two-byte characters.
329 * string buffer that resides outside V8's heap. Implement an
331 * underlying buffer. Note that the string data must be immutable
347 * The string data from the underlying buffer. If the resource is cacheable
352 /** The number of Latin-1 characters in the string.*/
381 * If the string is an external string, return the ExternalStringResourceBase
383 * string is returned in encoding_out.
389 * Get the ExternalStringResource for an external string. Returns
395 * Get the ExternalOneByteStringResource for an external one-byte string.
408 * Allocates a new string from a UTF-8 literal. This is equivalent to calling
412 * When called on a string literal containing '\0', the inferred length is the
424 /** Allocates a new string from UTF-8 data. Only returns an empty value when
430 /** Allocates a new string from Latin-1 data. Only returns an empty value
436 /** Allocates a new string from UTF-16 data. Only returns an empty value when
443 * Creates a new string by concatenating the left and the right strings
450 * Creates a new external string using the data defined in the given
451 * resource. When the external string is no longer live on V8's heap the
455 * destructor of the external string resource.
461 * Associate an external string resource with this string by transforming it
462 * in place so that existing references to this string in the JavaScript heap
463 * will use the external string resource. The external string resource's
464 * character contents need to be equivalent to this string.
465 * Returns true if the string has been changed to be an external string.
466 * The string is not modified if the operation fails. See NewExternal for
472 * Creates a new external string using the one-byte data defined in the given
473 * resource. When the external string is no longer live on V8's heap the
477 * destructor of the external string resource.
483 * Associate an external string resource with this string by transforming it
484 * in place so that existing references to this string in the JavaScript heap
485 * will use the external string resource. The external string resource's
486 * character contents need to be equivalent to this string.
487 * Returns true if the string has been changed to be an external string.
488 * The string is not modified if the operation fails. See NewExternal for
494 * Returns true if this string can be made external.
500 * Returns true if this string can be made external, given the encoding for
501 * the external string resource.
512 * you want to print the object. If conversion to a string fails
535 * Converts an object to a two-byte (UTF-16-encoded) string.
536 * If conversion to a string fails (eg. due to an exception in the toString()
572 // Zero-length string specialization (templated string size includes
586 virtual void VisitExternalString(Local<String> string) {}
595 * Returns the description string of the symbol, or undefined if none.