summaryrefslogtreecommitdiff
path: root/src/string_bytes.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'upstream/v0.10'Timothy J Fontaine2014-06-101-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: AUTHORS ChangeLog deps/v8/src/api.cc deps/v8/src/unicode-inl.h deps/v8/src/unicode.h lib/_stream_readable.js lib/http.js src/cares_wrap.cc src/node.cc src/node_crypto.cc src/node_dtrace.cc src/node_file.cc src/node_stat_watcher.cc src/node_version.h src/process_wrap.cc src/string_bytes.cc src/string_bytes.h src/udp_wrap.cc src/util.h test/simple/test-buffer.js test/simple/test-stream2-compatibility.js
| * string_bytes: Guarantee valid utf-8 outputFelix Geisendörfer2014-06-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* | src: remove `node_isolate` from sourceFedor Indutny2014-02-221-6/+61
| | | | | | | | fix #6899
* | string_bytes: export GetExternalPartsTrevor Norris2013-07-301-0/+6
| | | | | | | | | | The method is useful elsewhere when needing to check if external and grab data.
* | string_bytes: don't use named imports in headerBen Noordhuis2013-07-301-12/+7
|/ | | | | | It imports the definition into every source file that includes string_bytes.h, as evidenced by the build suddenly breaking left and right because of missing Handle/Local/String/Value imports.
* string_bytes: add StringBytes::IsValidString()Ben Noordhuis2013-07-301-0/+5
| | | | | | | | 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.
* src: Add StringBytes static util classisaacs2013-05-141-0/+65
Four functions: - StringBytes::StorageSize() - StringBytes::Size() - StringBytes::Write() - StringBytes::Encode()