Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add string builder to build JsString #3915

Merged
merged 47 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4478391
feat: add `JsStringBuilder` and test
CrazyboyQCD Jul 12, 2024
5d7eacb
chore: fix calculation on capacity and add `clone` impl
CrazyboyQCD Jul 17, 2024
157e551
chore: some misc fix
CrazyboyQCD Jul 24, 2024
21609cd
fix: wrong capacity calculation in `extend`
CrazyboyQCD Jul 25, 2024
66026c3
chore: prevent `reserve` except for the shrink in `build`
CrazyboyQCD Jul 25, 2024
aacd9b9
chore: fix misc
CrazyboyQCD Jul 25, 2024
8a60e43
perf: use `realloc` for allocation
CrazyboyQCD Jul 25, 2024
bb1a8c3
chore: fix lint
CrazyboyQCD Jul 25, 2024
7fd3a4e
fix: wrong ascii validation
CrazyboyQCD Jul 26, 2024
73266f5
fix: wrong allocated data bytes calculation
CrazyboyQCD Jul 26, 2024
3d486a7
fix: wrong capacity calcultion on `with_capacity`
CrazyboyQCD Jul 26, 2024
951fb93
Merge branch 'boa-dev:main' into main
CrazyboyQCD Jul 29, 2024
066fb54
fix: clippy fix
CrazyboyQCD Jul 29, 2024
6e689dc
chore: add public `reserve`
CrazyboyQCD Aug 4, 2024
a95fb73
chore: comments and renaming
CrazyboyQCD Aug 4, 2024
c3f293e
Merge branch 'main' into main
CrazyboyQCD Aug 12, 2024
e7634f9
chore: update misc
CrazyboyQCD Aug 12, 2024
a795db0
chore: moved to module `builder` and implement `AddAssign` for `Builder`
CrazyboyQCD Aug 12, 2024
920f90f
chore: add zero case for `with_capacity`
CrazyboyQCD Aug 16, 2024
7cd9f3b
chore: mark public methods `inline`
CrazyboyQCD Aug 18, 2024
d57f057
chore: extract allocation check into `allocate_if_needed`
CrazyboyQCD Aug 18, 2024
f56988d
chore: fix lint
CrazyboyQCD Aug 18, 2024
9f53ef9
chore: expose `JsStringData`
CrazyboyQCD Aug 18, 2024
46ebd5c
feat: add common string builder and export 1 byte and 2 bytes string …
CrazyboyQCD Sep 30, 2024
2797edb
Merge branch 'main' into main
CrazyboyQCD Sep 30, 2024
5e91c0b
chore: add missed trait
CrazyboyQCD Sep 30, 2024
4e2383c
chore: fix lint
CrazyboyQCD Sep 30, 2024
df8b629
chore: fix doc
CrazyboyQCD Sep 30, 2024
6c1cfa2
chore: add `reserve_exact`
CrazyboyQCD Oct 16, 2024
7509243
chore: typos
CrazyboyQCD Oct 16, 2024
2cae1e6
chore: fix argument
CrazyboyQCD Oct 16, 2024
3f86253
chore: fix doc
CrazyboyQCD Oct 16, 2024
f47a6cf
chore: mark `current_layout` unsafe
CrazyboyQCD Oct 16, 2024
581f14f
chore: fix lint
CrazyboyQCD Oct 16, 2024
f57bc78
chore: remove `JsStringData` and rename builders
CrazyboyQCD Nov 14, 2024
2cb4053
chore: add build methods to typed builders
CrazyboyQCD Nov 14, 2024
62fb4c1
chore: add more build methods to `CommonJsStringBuilder`
CrazyboyQCD Nov 14, 2024
926c14c
chore: rename `latin1` check to `ascii` check
CrazyboyQCD Nov 14, 2024
0192d7e
chore: refine docs
CrazyboyQCD Nov 14, 2024
e8f9f3b
chore: update tests
CrazyboyQCD Nov 14, 2024
61fe735
chore: limit the generic type `D` of `JsStringBuilder` to Copy
CrazyboyQCD Nov 14, 2024
5740506
chore: move `entend` method under `Extend` trait
CrazyboyQCD Nov 15, 2024
3b4ec3d
chore: should validate `Latin1` segement in `build_from_latin1`
CrazyboyQCD Nov 18, 2024
98816ff
chore: add `Add` trait implementation to builders
CrazyboyQCD Nov 18, 2024
467d7c3
chore: refines docs and add `inline` to trait methods
CrazyboyQCD Nov 18, 2024
fd9575b
chore: adds `clone_from` and related tests
CrazyboyQCD Nov 18, 2024
bb27bd7
chore: adds `as_mut_slice` to typed builders
CrazyboyQCD Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading