while (start_ptr < end_ptr) { start_ptr += UTF8SKIP(start_ptr); len++; }