** Return the length of a string in characters. Multibyte UTF8 characters ** count as a single character. */
| 632 | ** count as a single character. |
| 633 | */ |
| 634 | static int strlenChar(const char *z){ |
| 635 | int n = 0; |
| 636 | while( *z ){ |
| 637 | if( (0xc0&*(z++))!=0x80 ) n++; |
| 638 | } |
| 639 | return n; |
| 640 | } |
| 641 | |
| 642 | /* |
| 643 | ** Return true if zFile does not exist or if it is not an ordinary file. |
no outgoing calls
no test coverage detected