<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/src/string_bytes.cc, branch v0.10</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>string_bytes: Guarantee valid utf-8 output</title>
<updated>2014-06-06T22:07:29+00:00</updated>
<author>
<name>Felix Geisendörfer</name>
<email>felix@debuggable.com</email>
</author>
<published>2014-01-20T08:47:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=0da4c671659cfbae12def127b2e94690b9d9b5e1'/>
<id>0da4c671659cfbae12def127b2e94690b9d9b5e1</id>
<content type='text'>
Previously v8's WriteUtf8 function would produce invalid utf-8 output
when encountering unmatched surrogate code units [1]. The new
REPLACE_INVALID_UTF8 option fixes that by replacing invalid code points
with the unicode replacement character.

[1]: JS Strings are defined as arrays of 16 bit unsigned integers. There
is no unicode enforcement, so one can easily end up with invalid unicode
code unit sequences inside a string.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously v8's WriteUtf8 function would produce invalid utf-8 output
when encountering unmatched surrogate code units [1]. The new
REPLACE_INVALID_UTF8 option fixes that by replacing invalid code points
with the unicode replacement character.

[1]: JS Strings are defined as arrays of 16 bit unsigned integers. There
is no unicode enforcement, so one can easily end up with invalid unicode
code unit sequences inside a string.
</pre>
</div>
</content>
</entry>
<entry>
<title>string_bytes: add StringBytes::IsValidString()</title>
<updated>2013-07-30T12:32:47+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-07-30T12:26:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=dce26ccea16455179ca538f32d2779cfbf20c51b'/>
<id>dce26ccea16455179ca538f32d2779cfbf20c51b</id>
<content type='text'>
Performs a quick, non-exhaustive check on the input string to see if
it's compatible with the specified string encoding.

Curently it only checks that hex strings have a length that is a
multiple of two.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Performs a quick, non-exhaustive check on the input string to see if
it's compatible with the specified string encoding.

Curently it only checks that hex strings have a length that is a
multiple of two.
</pre>
</div>
</content>
</entry>
<entry>
<title>string_bytes: properly detect 64bit</title>
<updated>2013-06-20T00:16:35+00:00</updated>
<author>
<name>Timothy J Fontaine</name>
<email>tjfontaine@gmail.com</email>
</author>
<published>2013-06-20T00:10:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=a2c4ca09ed80e28a9035ec442269a4e5913ac292'/>
<id>a2c4ca09ed80e28a9035ec442269a4e5913ac292</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>string_bytes: strip padding from base64 strings</title>
<updated>2013-05-20T20:40:58+00:00</updated>
<author>
<name>Trevor Norris</name>
<email>trev.norris@gmail.com</email>
</author>
<published>2013-05-20T19:35:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=d5d5170c359fc96f36650cdd9b84cbb013c33735'/>
<id>d5d5170c359fc96f36650cdd9b84cbb013c33735</id>
<content type='text'>
Because of variations in different base64 implementation, it's been
decided to strip all padding from the end of a base64 string and
calculate its size from that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because of variations in different base64 implementation, it's been
decided to strip all padding from the end of a base64 string and
calculate its size from that.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: Remove superfluous static_cast</title>
<updated>2013-05-17T23:58:05+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-05-17T23:58:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=f57ff787aafc0ac20b489acd1ec4dc9d09193000'/>
<id>f57ff787aafc0ac20b489acd1ec4dc9d09193000</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>buffer, crypto: fix default encoding regression</title>
<updated>2013-05-16T15:25:24+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-05-15T15:52:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=f59ab10a6415e7dce7a6c3b6e734c213298ec205'/>
<id>f59ab10a6415e7dce7a6c3b6e734c213298ec205</id>
<content type='text'>
The default encoding is 'buffer'. When the input is a string, treat it
as 'binary'. Fixes the following assertion:

  node: ../src/string_bytes.cc:309: static size_t
  node::StringBytes::StorageSize(v8::Handle&lt;v8::Value&gt;, node::encoding):
  Assertion `0 &amp;&amp; "buffer encoding specified but string provided"'
  failed.

Introduced in 64fc34b2.

Fixes #5482.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The default encoding is 'buffer'. When the input is a string, treat it
as 'binary'. Fixes the following assertion:

  node: ../src/string_bytes.cc:309: static size_t
  node::StringBytes::StorageSize(v8::Handle&lt;v8::Value&gt;, node::encoding):
  Assertion `0 &amp;&amp; "buffer encoding specified but string provided"'
  failed.

Introduced in 64fc34b2.

Fixes #5482.
</pre>
</div>
</content>
</entry>
<entry>
<title>src: Add StringBytes static util class</title>
<updated>2013-05-14T20:51:24+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-05-01T22:40:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=64fc34b27005229487faba1c43ffdfa08ca4f982'/>
<id>64fc34b27005229487faba1c43ffdfa08ca4f982</id>
<content type='text'>
Four functions:

- StringBytes::StorageSize()
- StringBytes::Size()
- StringBytes::Write()
- StringBytes::Encode()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Four functions:

- StringBytes::StorageSize()
- StringBytes::Size()
- StringBytes::Write()
- StringBytes::Encode()
</pre>
</div>
</content>
</entry>
</feed>
