** Return the length of a string in characters. Multibyte UTF8 characters ** count as a single character. */
| 739 | ** count as a single character. |
| 740 | */ |
| 741 | static int strlenChar(const char *z){ |
| 742 | int n = 0; |
| 743 | while( *z ){ |
| 744 | if( (0xc0&*(z++))!=0x80 ) n++; |
| 745 | } |
| 746 | return n; |
| 747 | } |
| 748 | |
| 749 | /* |
| 750 | ** Return open FILE * if zFile exists, can be opened for read |
no outgoing calls
no test coverage detected