| 594 | |
| 595 | |
| 596 | char* SupportDBCS::charnext(const char *s) |
| 597 | { |
| 598 | // Zero cannot be the trail byte. So if next byte after the lead byte |
| 599 | // is 0, the string is corrupt and we'll better return the pointer to 0, |
| 600 | // to break string processing loops. |
| 601 | return (char *)(IsLeadByte[(byte)*s] && s[1]!=0 ? s+2:s+1); |
| 602 | } |
| 603 | |
| 604 | |
| 605 | size_t SupportDBCS::strlend(const char *s) |