diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2013-08-13 05:02:34 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-14 22:46:58 +0200 |
commit | 2e0a4b13addf1f56112bac38448be96fb02f650d (patch) | |
tree | 6fbd02132bdba115dd762aba7b0502a5d983d982 /src/corelib/tools/qunicodetables_p.h | |
parent | 252bad7c589e03d3e12df02354b00a84d8e3159a (diff) |
[2/2] Implement Unicode Normalization Form Quick Check (NF QC)
Use QuickCheck data from DerivedNormalizationProps.txt to check
if the input text is already in the desired Normalization Form.
\sa http://www.unicode.org/reports/tr15/#Detecting_Normalization_Forms
Using NF QC makes a significant boost to most operations that rely on
normalized input data, i.e. file path conversions on Mac, where "native"
form is a decomposed Unicode string.
Change-Id: I292a9da479c6beed730528fc7000c45bf1befc34
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qunicodetables_p.h')
-rw-r--r-- | src/corelib/tools/qunicodetables_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/tools/qunicodetables_p.h b/src/corelib/tools/qunicodetables_p.h index 8f0b7aabad..08b8d58e70 100644 --- a/src/corelib/tools/qunicodetables_p.h +++ b/src/corelib/tools/qunicodetables_p.h @@ -79,8 +79,9 @@ struct Properties { ushort titleCaseSpecial : 1; ushort caseFoldSpecial : 1; ushort unicodeVersion : 4; - ushort graphemeBreakClass : 8; /* 4 used */ - ushort wordBreakClass : 8; /* 4 used */ + ushort nfQuickCheck : 8; + ushort graphemeBreakClass : 4; /* 4 used */ + ushort wordBreakClass : 4; /* 4 used */ ushort sentenceBreakClass : 8; /* 4 used */ ushort lineBreakClass : 8; /* 6 used */ ushort script : 8; /* 7 used */ |