constify CaseMappingSpecials
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48beedd5db
commit
4f7c3d3583
@ -725,7 +725,7 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP,
|
||||
|
||||
MODIFIED;
|
||||
if (flags&OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_SPECIALS) { /* special */
|
||||
OnigCodePoint *SpecialsStart = CaseMappingSpecials + OnigSpecialIndexDecode(folded->n);
|
||||
const OnigCodePoint *SpecialsStart = CaseMappingSpecials + OnigSpecialIndexDecode(folded->n);
|
||||
|
||||
if (OnigCaseFoldFlags(folded->n)&ONIGENC_CASE_IS_TITLECASE) { /* swapCASE available */
|
||||
if ((flags&(ONIGENC_CASE_UPCASE|ONIGENC_CASE_DOWNCASE))
|
||||
|
@ -6931,7 +6931,7 @@ onigenc_unicode_CaseUnfold_13_lookup(const OnigCodePoint *codes)
|
||||
return 0;
|
||||
}
|
||||
|
||||
OnigCodePoint CaseMappingSpecials[] = {
|
||||
static const OnigCodePoint CaseMappingSpecials[] = {
|
||||
L(1)|0x039C,
|
||||
L(2)|0x0053, 0x0073, L(2)|0x0053, 0x0053,
|
||||
L(2)|0x02BC, 0x004E,
|
||||
|
@ -326,7 +326,7 @@ class CaseMapping
|
||||
end
|
||||
|
||||
def specials_output
|
||||
"OnigCodePoint CaseMappingSpecials[] = {\n" +
|
||||
"static const OnigCodePoint CaseMappingSpecials[] = {\n" +
|
||||
@specials.map do |sps|
|
||||
' ' + sps.map do |sp|
|
||||
chars = sp.split(/ /)
|
||||
|
Loading…
x
Reference in New Issue
Block a user