Ignore:
Timestamp:
Sep 7, 2016, 11:54:14 AM (2 years ago)
Author:
cameron
Message:

Updates for Unicode 9.0; clean-ups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/UCD/casefold.py

    r4317 r5143  
    1111#
    1212import re, string, cformat
     13import UCD_config
    1314from unicode_set import *
    1415
    15 UCD_dir = "7.0.0"
    1616
    1717
     
    3131   fold_type = {}
    3232   fold_value = {}
    33    f = open(UCD_dir + "/" + 'CaseFolding.txt')
     33   f = open(UCD_config.UCD_src_dir + "/" + 'CaseFolding.txt')
    3434   lines = f.readlines()
    3535   for t in lines:
     
    174174
    175175struct FoldEntry {
    176     codepoint_t range_lo;
     176    re::codepoint_t range_lo;
    177177    int fold_offset;
    178     std::vector<std::pair<codepoint_t, codepoint_t> > fold_pairs;
     178    std::vector<re::interval_t> fold_pairs;
    179179};
    180180
    181 void caseInsensitiveInsert(re::CC * cc, codepoint_t cp);
    182 
    183 void caseInsensitiveInsertRange(re::CC * cc, codepoint_t lo, codepoint_t hi);
    184    
     181
     182void caseInsensitiveInsertRange(re::CC * cc, const re::codepoint_t lo, const re::codepoint_t hi);
     183
     184inline void caseInsensitiveInsert(re::CC * cc, const re::codepoint_t cp) {
     185    caseInsensitiveInsertRange(cc, cp, cp);
     186}
    185187"""
    186188
Note: See TracChangeset for help on using the changeset viewer.