fish-shell/fish-rust
Mahmoud Al-Qudsi 67124dfb11 Slightly refactor unescape_string_xxx() functions
* Since we already have an allocation of length wstr.len(), it's
  probably better to allocate the result (which is strictly less than or
  equal to the input length) up-front rather than risk thrashing the Vec
  allocation,
* There's no need to compare c2 against '\0' since that will just cause
  to_digit(16) to return None anyway,
* Our convert_hex() specialization of to_digit(16) that only checks
  capital letters A-F without also checking lowercase a-f isn't
  significantly faster than just use to_digit(16), and we already assert
  that the input *wasn't* a lowercase a-f before making the call, so
  there's no point in using a special function to handle that.
2023-04-26 15:18:27 -05:00
..
src Slightly refactor unescape_string_xxx() functions 2023-04-26 15:18:27 -05:00
widestring-suffix Initial Rust commit 2023-02-02 19:34:47 -07:00
build.rs Port AST to Rust 2023-04-16 17:46:56 +02:00
Cargo.lock Env stubs for path port 2023-04-21 13:57:29 +02:00
Cargo.toml Env stubs for path port 2023-04-21 13:57:29 +02:00