Ignore:
Timestamp:
2008-08-04T12:51:31+12:00 (16 years ago)
Author:
kjdon
Message:

upgraded segmentation stuff in format_querystring (using unicode 4.0) to include more Chinese characters and Japanese and Korean characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/recpt/querytools.cpp

    r12930 r16645  
    305305      formattedstring.push_back(' ');
    306306    } else if (segment) {
    307       if ((*here >= 0x4e00 && *here <= 0x9fa5) ||
    308       (*here >= 0xf900 && *here <= 0xfa2d)) {
    309     // Chinese character
     307      if ((*here >= 0x2e80 && *here <= 0xfa6a) ||
     308          (*here >= 0x20000 && *here <= 0x2a6d6) ||
     309      (*here >= 0x2f800 && *here <= 0x2fa1d)) {
     310   
     311    // CJK character
    310312    if (!space) formattedstring.push_back (0x200b); // zero width space
    311313    formattedstring.push_back (*here);
Note: See TracChangeset for help on using the changeset viewer.