411
411
string hebrew = "אָבּגּדּהּ";
412
412
string needle = "דּ";
413
evaluate (__LINE__, __func__, 3, (int)unicode_string_strpos ("012345", "3"));
414
evaluate (__LINE__, __func__, 5, (int)unicode_string_strpos ("012345", "5"));
415
evaluate (__LINE__, __func__, 0, (int)unicode_string_strpos ("012345", "0"));
416
evaluate (__LINE__, __func__, -1, (int)unicode_string_strpos ("012345", "6"));
417
evaluate (__LINE__, __func__, 3, (int)unicode_string_strpos (hebrew, needle));
418
evaluate (__LINE__, __func__, 3, (int)unicode_string_strpos (hebrew, needle, 3));
419
evaluate (__LINE__, __func__, -1, (int)unicode_string_strpos (hebrew, needle, 4));
420
evaluate (__LINE__, __func__, -1, (int)unicode_string_strpos ("", "3"));
413
evaluate (__LINE__, __func__, 3, static_cast<int>(unicode_string_strpos ("012345", "3")));
414
evaluate (__LINE__, __func__, 5, static_cast<int>(unicode_string_strpos ("012345", "5")));
415
evaluate (__LINE__, __func__, 0, static_cast<int>(unicode_string_strpos ("012345", "0")));
416
evaluate (__LINE__, __func__, -1, static_cast<int>(unicode_string_strpos ("012345", "6")));
417
evaluate (__LINE__, __func__, 3, static_cast<int>(unicode_string_strpos (hebrew, needle)));
418
evaluate (__LINE__, __func__, 3, static_cast<int>(unicode_string_strpos (hebrew, needle, 3)));
419
evaluate (__LINE__, __func__, -1, static_cast<int>(unicode_string_strpos (hebrew, needle, 4)));
420
evaluate (__LINE__, __func__, -1, static_cast<int>(unicode_string_strpos ("", "3")));
424
evaluate (__LINE__, __func__, 2, (int)unicode_string_strpos_case_insensitive ("AbCdEf", "c"));
425
evaluate (__LINE__, __func__, 2, (int)unicode_string_strpos_case_insensitive ("AbCdEf", "cD"));
426
evaluate (__LINE__, __func__, -1, (int)unicode_string_strpos_case_insensitive ("AbCdEf", "ce"));
424
evaluate (__LINE__, __func__, 2, static_cast<int>(unicode_string_strpos_case_insensitive ("AbCdEf", "c")));
425
evaluate (__LINE__, __func__, 2, static_cast<int>(unicode_string_strpos_case_insensitive ("AbCdEf", "cD")));
426
evaluate (__LINE__, __func__, -1, static_cast<int>(unicode_string_strpos_case_insensitive ("AbCdEf", "ce")));
549
549
u16 = convert_to_u16string ("a");
550
evaluate (__LINE__, __func__, 1, (int)u16.length());
550
evaluate (__LINE__, __func__, 1, static_cast<int> (u16.length()));
551
551
u16 = convert_to_u16string ("ℵ");
552
evaluate (__LINE__, __func__, 1, (int)u16.length());
552
evaluate (__LINE__, __func__, 1, static_cast<int> (u16.length()));
553
553
u16 = convert_to_u16string ("😀");
554
evaluate (__LINE__, __func__, 2, (int)u16.length());
554
evaluate (__LINE__, __func__, 2, static_cast<int> (u16.length()));
557
557
// Test tidying invalid html.