mirror of
https://github.com/dlang/phobos.git
synced 2025-05-03 08:30:33 +03:00
make case tables immutable
- Avoids redundant object copies and semantic analysis for every usage. - Multilib archives or gc-sections will take care of the binary size issue.
This commit is contained in:
parent
713c72c0dc
commit
45c873faf3
2 changed files with 4 additions and 4 deletions
|
@ -58,7 +58,7 @@ struct TrieEntry(T...)
|
|||
size_t[] data;
|
||||
}
|
||||
|
||||
enum simpleCaseTable = [
|
||||
immutable simpleCaseTable = [
|
||||
SimpleCaseEntry(0x2c00, 0, 0x82),
|
||||
SimpleCaseEntry(0x2c30, 1, 0x42),
|
||||
SimpleCaseEntry(0x24c3, 0, 0x82),
|
||||
|
@ -2216,7 +2216,7 @@ enum simpleCaseTable = [
|
|||
SimpleCaseEntry(0x24c0, 0, 0x82),
|
||||
SimpleCaseEntry(0x24da, 1, 0x42)
|
||||
];
|
||||
enum fullCaseTable = [
|
||||
immutable fullCaseTable = [
|
||||
FullCaseEntry("Ⰰ", 0, 2, 1),
|
||||
FullCaseEntry("ⰰ", 1, 2, 1),
|
||||
FullCaseEntry("Ⓝ", 0, 2, 1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue