void CheckRuns(const Vector<TestRun>& runs) { String text(emptyString16Bit()); Vector<ExpectedRun> expect; for (auto& run : runs) { text.append(String::fromUTF8(run.text.c_str())); expect.append(ExpectedRun(text.length(), run.code)); } OrientationIterator orientationIterator(text.characters16(), text.length(), FontOrientation::VerticalMixed); VerifyRuns(&orientationIterator, expect); }
void CheckRuns(const Vector<TestRun>& runs) { String text(String::make16BitFrom8BitSource(0, 0)); Vector<ExpectedRun> expect; for (auto& run : runs) { text.append(String::fromUTF8(run.text.c_str())); expect.append(ExpectedRun(text.length(), run.code)); } SmallCapsIterator smallCapsIterator(text.characters16(), text.length()); VerifyRuns(&smallCapsIterator, expect); }