| 603 | |
| 604 | |
| 605 | size_t SupportDBCS::strlend(const char *s) |
| 606 | { |
| 607 | size_t Length=0; |
| 608 | while (*s!=0) |
| 609 | { |
| 610 | if (IsLeadByte[(byte)*s]) |
| 611 | s+=2; |
| 612 | else |
| 613 | s++; |
| 614 | Length++; |
| 615 | } |
| 616 | return(Length); |
| 617 | } |
| 618 | |
| 619 | |
| 620 | char* SupportDBCS::strchrd(const char *s, int c) |