-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8316704: Regex-free parsing of Formatter and FormatProcessor specifiers #15776
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
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
131eddf
optimization for String::format
wenshao 77d0d5a
remove print fast-path changes
wenshao 32f9990
parse fast-path support more pattern
wenshao 0607e08
parse fast-path support more pattern and add benchmark case
wenshao dbcebaa
bug fix
wenshao d78149f
parse fast-path support more pattern
wenshao 7692a1c
remove unused comment
wenshao 17ab583
parse fast-path support more specifiers
wenshao c28ab59
fix specifiers support '%<s'
wenshao 0ccc6a6
fix specifiers duplicate flags not throw error
wenshao 4d6d1e8
drop the regex code entirely and write a custom parser
wenshao a71031e
bug fix
wenshao 3cebe97
bug fix for '%T' not throw error
wenshao f303f29
refactor
wenshao b3ca246
refactor & bug fix
wenshao 59c2983
shared between Formatter and FormatProcessor
wenshao 2042751
restore StringFormat
wenshao eef0ca6
add decimal benchmark
wenshao 2153a22
Merge remote-tracking branch 'upstream/master' into optim_for_string_…
wenshao 9f229b0
import BigDecimal
wenshao 0d977b2
refactor and cache single conversion FormatSpecifier
wenshao 7b831ab
Revert "refactor and cache single conversion FormatSpecifier"
wenshao 155d004
fix logic error
wenshao f85b9d4
remove unused code
wenshao 6be4d46
remove unused code
wenshao ba4660a
refactor for review & remove comment
wenshao eafac65
code format
wenshao 8a6fe0e
fix : the exception thrown when the input does not include conversion…
wenshao 3ff5121
Refactor according to rgiulietti's suggestion and add testcases
wenshao b19dc51
Fix from @rgiulietti review
wenshao ad7f3bd
Improve the readability of parseArgument, suggestion from @rgiulietti
wenshao 7b3ce95
Improve the readability, suggestion from @rgiulietti
wenshao 7a1cd11
add copyright info
wenshao 134f2b2
move testcase from BasicInt to Basic-X
wenshao bce554a
move testcases to Basic.java
wenshao fd5a5f2
fix from @rgiulietti 's review
wenshao d8d3ef4
fix FormatterBuilder testcase handle lineSeparator on windows
wenshao abb9022
add document
wenshao 289a024
fix from @rgiulietti 's review
wenshao 9618d61
Merge remote-tracking branch 'upstream/master' into optim_for_string_…
wenshao a5f1a4f
Merge remote-tracking branch 'upstream/master' into optim_for_string_…
wenshao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.