mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
6c1e5ad3ab
* Remove unnecessary templating from SearchString SearchString used to have separate PatternChar and SubjectChar template type arguments, apparently to support things like searching for an 8-bit string inside a 16-bit string or vice versa. However, SearchString is only used from node_buffer.cc, where PatternChar and SubjectChar are always the same. Since this is extra complexity that's unused and untested (simplifying to a single Char template argument still compiles and didn't break any unit tests), I removed it. * Use Boyer-Hoore[-Horspool] for both indexOf and lastIndexOf Add test cases for lastIndexOf. Test the fallback from BMH to Boyer-Moore, which looks like it was totally untested before. * Extra bounds checks in node_buffer.cc * Extra asserts in string_search.h * Buffer.lastIndexOf: clean up, enforce consistency w/ String.lastIndexOf * Polyfill memrchr(3) for non-GNU systems PR-URL: https://github.com/nodejs/node/pull/4846 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com> |
||
---|---|---|
.. | ||
_toc.md | ||
addons.md | ||
all.md | ||
assert.md | ||
buffer.md | ||
child_process.md | ||
cli.md | ||
cluster.md | ||
console.md | ||
crypto.md | ||
debugger.md | ||
dgram.md | ||
dns.md | ||
documentation.md | ||
domain.md | ||
errors.md | ||
events.md | ||
fs.md | ||
globals.md | ||
http.md | ||
https.md | ||
index.md | ||
modules.md | ||
net.md | ||
os.md | ||
path.md | ||
process.md | ||
punycode.md | ||
querystring.md | ||
readline.md | ||
repl.md | ||
stream.md | ||
string_decoder.md | ||
synopsis.md | ||
timers.md | ||
tls.md | ||
tty.md | ||
url.md | ||
util.md | ||
v8.md | ||
vm.md | ||
zlib.md |