mozilla/webvtt — pull request #77 by caitp (2013-02-09 03:50:26+00:00)
Title: String helper functions to assist unit tests with multibyte encodings

Added routines to C library (string.c):

webvtt_next_utf8

webvtt_prev_utf8

webvtt_skip_utf8

webvtt_utf8_to_utf16

These are used by the C++ library to allow us to access the Nth utf16
character at some index.

This could also be easily extended to support utf32 if needed.

These routines are not perfect yet, so review review review.