This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma(inline) | |
| size_t utf8Length(char[] src) pure nothrow @trusted | |
| { | |
| size_t len = 0; | |
| foreach (ref b; src) { | |
| if ((b & 0xC0) != 0x80) len++; | |
| } | |
| return len; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REPORT ZWTF. | |
| CLASS _ DEFINITION FINAL. | |
| PUBLIC SECTION. | |
| TYPES: | |
| BEGIN OF t_ret, | |
| _ TYPE REF TO string, | |
| END OF t_ret. | |
| CONSTANTS: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REPORT ZWTF. | |
| CLASS _ DEFINITION FINAL. | |
| PUBLIC SECTION. | |
| TYPES: | |
| BEGIN OF ___, | |
| __ TYPE char1, | |
| _ TYPE REF TO string, | |
| END OF ___, | |
| ____ TYPE STANDARD TABLE OF ___ WITH KEY __, |