~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to enc/unicode.c

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2091
2091
  UChar *p;
2092
2092
  OnigCodePoint code;
2093
2093
 
2094
 
  p = name;
2095
2094
  len = 0;
2096
2095
  for (p = name; p < end; p += enclen(enc, p, end)) {
2097
2096
    code = ONIGENC_MBC_TO_CODE(enc, p, end);
2245
2244
 
2246
2245
  if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
2247
2246
    if (to->n == 1) {
2248
 
      return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);      
 
2247
      return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);
2249
2248
    }
2250
2249
#if 0
2251
2250
    /* NO NEEDS TO CHECK */
2351
2350
      for (j = 0; j < CaseUnfold_12[i].to.n; j++) {
2352
2351
        r = (*f)(CaseUnfold_12[i].to.code[j],
2353
2352
                 (OnigCodePoint* )CaseUnfold_12[i].from, 2, arg);
2354
 
        if (r != 0) return r;   
 
2353
        if (r != 0) return r;
2355
2354
 
2356
2355
        for (k = 0; k < CaseUnfold_12[i].to.n; k++) {
2357
2356
          if (k == j) continue;
2370
2369
        for (j = 0; j < CaseUnfold_12_Locale[i].to.n; j++) {
2371
2370
          r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
2372
2371
                   (OnigCodePoint* )CaseUnfold_12_Locale[i].from, 2, arg);
2373
 
          if (r != 0) return r; 
 
2372
          if (r != 0) return r;
2374
2373
 
2375
2374
          for (k = 0; k < CaseUnfold_12_Locale[i].to.n; k++) {
2376
2375
            if (k == j) continue;
2390
2389
      for (j = 0; j < CaseUnfold_13[i].to.n; j++) {
2391
2390
        r = (*f)(CaseUnfold_13[i].to.code[j],
2392
2391
                 (OnigCodePoint* )CaseUnfold_13[i].from, 3, arg);
2393
 
        if (r != 0) return r;   
 
2392
        if (r != 0) return r;
2394
2393
 
2395
2394
        for (k = 0; k < CaseUnfold_13[i].to.n; k++) {
2396
2395
          if (k == j) continue;