stringset.js
No description.

File Location

/goog/structs/stringset.js

Classes

goog.structs.StringSet
Creates a set of strings.

Public Protected Private

Global Functions

goog.structs.StringSet.decode_(key) string
Inverse function of goog.structs.StringSet.encode_. NOTE: forEach would be 30% faster in FF if the compiler inlined decode.
Arguments:
key : string
The escaped element used as the key of the internal object.
Returns: string  The unescaped element.
code »
goog.structs.StringSet.encode_(element) *
The '__proto__' and the '__count__' keys aren't enumerable in Firefox, and 'toString', 'valueOf', 'constructor', etc. aren't enumerable in IE so they have to be escaped before they are added to the internal object. NOTE: When a new set is created, 50-80% of the CPU time is spent in encode.
Arguments:
element : *
The element to escape.
Returns: *  The escaped element or the element itself if it doesn't have to be escaped.
code »

Directory structs

File Reference