Rust编写的JavaScript引擎,该项目是一个试验性质的项目。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrazyboyQCD
8f1d8d473a
Add string builder to build `JsString` (#3915)
* feat: add `JsStringBuilder` and test
* chore: fix calculation on capacity and add `clone` impl
* chore: some misc fix
* fix: wrong capacity calculation in `extend`
* chore: prevent `reserve` except for the shrink in `build`
* chore: fix misc
* perf: use `realloc` for allocation
* chore: fix lint
* fix: wrong ascii validation
* fix: wrong allocated data bytes calculation
* fix: wrong capacity calcultion on `with_capacity`
* fix: clippy fix
* chore: add public `reserve`
* chore: comments and renaming
* chore: update misc
* chore: moved to module `builder` and implement `AddAssign` for `Builder`
* chore: add zero case for `with_capacity`
* chore: mark public methods `inline`
* chore: extract allocation check into `allocate_if_needed`
* chore: fix lint
* chore: expose `JsStringData`
* feat: add common string builder and export 1 byte and 2 bytes string builder
* chore: add missed trait
* chore: fix lint
* chore: fix doc
* chore: add `reserve_exact`
* chore: typos
* chore: fix argument
* chore: fix doc
* chore: mark `current_layout` unsafe
* chore: fix lint
* chore: remove `JsStringData` and rename builders
* chore: add build methods to typed builders
* chore: add more build methods to `CommonJsStringBuilder`
* chore: rename `latin1` check to `ascii` check
* chore: refine docs
* chore: update tests
* chore: limit the generic type `D` of `JsStringBuilder` to Copy
* chore: move `entend` method under `Extend` trait
* chore: should validate `Latin1` segement in `build_from_latin1`
* chore: add `Add` trait implementation to builders
* chore: refines docs and add `inline` to trait methods
* chore: adds `clone_from` and related tests
* chore: adds `as_mut_slice` to typed builders
|
1 day ago |
.. |
src
|
Add string builder to build `JsString` (#3915)
|
1 day ago |
ABOUT.md
|
update versions and ABOUT files (#3903)
|
5 months ago |
Cargo.toml
|
Remove `boa_macros` from `boa_string` (#3913)
|
4 months ago |