Compare Revisions

StringView

Revision 503559:

Revision 503559 by fusionchess on

Revision 503561:

Revision 503561 by fusionchess on

Title:
StringView
StringView
Slug:
Code_snippets/StringView
Code_snippets/StringView
Tags:
"Code snippet","MDN JavaScript Libraries","Sample code","Guide","js-ctypes","WebGL","JavaScript typed arrays","JavaScript","Typed Arrays","WebSockets"
"Code snippet","MDN JavaScript Libraries","Sample code","Guide","js-ctypes","WebGL","JavaScript typed arrays","JavaScript","Typed Arrays","WebSockets"
Content:

Revision 503559
Revision 503561
n2142        A collection of 1-6 <code>uint8</code> <a href="#glossaryn2142        An unique number for each Unicode character. It is rappre
>_element" title="Element - glossary">elements</a> for <code>UTF-8>sented by a collection of 1-6 <code>uint8</code> <a href="#glossa
></code>, 1-2 <code>uint16</code> <a href="#glossary_element" titl>ry_element" title="Element - glossary">elements</a> for <code>UTF
>e="Element - glossary">elements</a> for <code>UTF-16</code>, 1 <c>-8</code>, 1-2 <code>uint16</code> <a href="#glossary_element" ti
>ode>uint32</code> <a href="#glossary_element" title="Element - gl>tle="Element - glossary">elements</a> for <code>UTF-16</code>, 1 
>ossary">element</a> for <code>UCS4</code>, 1 <code>uint8</code> <><code>uint32</code> <a href="#glossary_element" title="Element - 
>a href="#glossary_element" title="Element - glossary">element</a>>glossary">element</a> for <code>UCS4</code>, 1 <code>uint8</code>
> for <code>ASCII</code>, or something else.> <a href="#glossary_element" title="Element - glossary">element</
 >a> for <code>ASCII</code>, or something else.
nn2149      </dd>
2150      <dt id="glossary_null_codepoint">
2151        <code>NULL</code> codepoint
2152      </dt>
2153      <dd>
2154        The character whose <a href="#glossary_codepoint">codepoi
 >nt</a> is equal to <code>0</code> (<code>'\0'</code>).
t2204      <li>Since <code>stringView</code>, unlike <a href="http://et2210      <li>Since <code>stringView</code>, unlike <a href="http://e
>n.wikipedia.org/wiki/C_%28programming_language%29">C</a> strings,>n.wikipedia.org/wiki/C_%28programming_language%29">C</a> strings,
> has a <code>length</code> property, there are no reasons to add > has a <code>length</code> property, there are no reasons to add 
>a null character (<code>'\0'</code>) after the termination of the><a href="#glossary_null_codepoint"><code>NULL</code> codepoint<
> string.>/a> (<code>'\0'</code>) after the termination of a string.

Back to History