Structsยง
- Byte
String - Encapsulates the IDL
ByteString
type. - DOMString
- A DOMString.
- USVString
- A string that is constructed from a UCS-2 buffer by replacing invalid code points with the replacement character.
Traitsยง
- From
Input ๐Value String - ToInput
Value ๐String
Functionsยง
- is_
leap_ ๐year - is_
token - Returns whether
s
is atoken
, as defined by RFC 2616. - max_
day_ ๐in_ month - max_
week_ ๐in_ year - https://html.spec.whatwg.org/multipage/#week-number-of-the-last-day
- parse_
date_ ๐component - https://html.spec.whatwg.org/multipage/#parse-a-date-component
- parse_
month_ ๐component - https://html.spec.whatwg.org/multipage/#parse-a-month-component
- parse_
time_ ๐component - https://html.spec.whatwg.org/multipage/#parse-a-time-component
- serialize_
jsval_ to_ json_ utf8 - Because this converts to a DOMString it becomes UTF-8 encoded which is closer to the spec definition of https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-json-bytes but we generally do not operate on anything that is truly a WTF-16 string.