This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Add Locale.fromSubtags and support for scriptCode. #6518
Merged
Merged
Changes from 12 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e042526
Add Locale.fromComponents.
hugovdm 4013600
Change toString from underscores to dashes. Expand the unit tests.
hugovdm 813998d
Rename 'fromComponents' to 'create'. Change variants from String to L…
hugovdm fe5e110
Use default for language parameter. Use hashCode/hashList.
hugovdm fb72be0
Have toString() stick with old (underscore) behaviour.
hugovdm c6a8b96
Demonstrate empty-list bug in assert code.
hugovdm af40b72
Fix empty-list assert bug.
hugovdm 488cf31
Add ignores for lint issues. Unsure about 71340 though.
hugovdm 829af35
Fix operator== via _listEquals.
hugovdm c749663
Remove length-checking asserts: we're anyway not checking characters …
hugovdm 04c52e9
Documentation update.
hugovdm 58bfdc6
Change reasoning for ignore:prefer_initializing_formals.
hugovdm bc4cc07
Try 'fromSubtags' as new constructor name.
hugovdm a8b2797
Documentation improvements based on Pull Request review.
hugovdm d6f06f5
Assert-fail for invalid-length subtags and drop bad subtags in produc…
hugovdm 8948502
Revert "Assert-fail for invalid-length subtags and drop bad subtags i…
hugovdm 20e8bd7
Re-fix Locale.toString() for variants=[].
hugovdm 9911dfd
Tear out variants, in case we want to have one fewer pointer in the f…
hugovdm cb81b55
Make named parameters' names consistent with member names.
hugovdm 5e0def8
Also remove _listEquals: no longer in use.
hugovdm 9f6e3e0
Merge branch 'master' into fromComponents
hugovdm 97ab4fe
Lint fix.
hugovdm 5f625ae
Fix code review nits.
hugovdm 3b87068
Lint fix for assert, and a couple more not-zero-length-string asserts.
hugovdm df46762
Code Review: two of three nits addressed...
hugovdm 57b068e
Review fix: change 'should' to 'must' for subtag prescriptions.
hugovdm 6f07e8d
Assert-check that countryCode is never ''.
hugovdm 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
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.