Leave no doubt about align_limit_to_full_utf8_characters being internal

This commit is contained in:
Sebastian Pipping 2017-08-23 17:33:39 +02:00
parent a4321e4f29
commit 8711ee3054
5 changed files with 6 additions and 6 deletions

View File

@ -116,7 +116,7 @@ extern "C" {
void
align_limit_to_full_utf8_characters(const char * from, const char ** fromLimRef);
_INTERNAL_trim_to_complete_utf8_characters(const char * from, const char ** fromLimRef);
#ifdef __cplusplus

View File

@ -74,4 +74,4 @@ EXPORTS
; added with version 2.1.1
; XML_GetAttributeInfo @66
XML_SetHashSalt @67@
align_limit_to_full_utf8_characters @68@
_INTERNAL_trim_to_complete_utf8_characters @68@

View File

@ -74,4 +74,4 @@ EXPORTS
; added with version 2.1.1
; XML_GetAttributeInfo @66
XML_SetHashSalt @67@
align_limit_to_full_utf8_characters @68@
_INTERNAL_trim_to_complete_utf8_characters @68@

View File

@ -363,7 +363,7 @@ enum { /* UTF8_cvalN is value of masked first byte of N byte sequence */
};
void
align_limit_to_full_utf8_characters(const char * from, const char ** fromLimRef)
_INTERNAL_trim_to_complete_utf8_characters(const char * from, const char ** fromLimRef)
{
const char * fromLim = *fromLimRef;
size_t walked = 0;
@ -416,7 +416,7 @@ utf8_toUtf8(const ENCODING *UNUSED_P(enc),
/* Avoid copying partial characters (from incomplete input). */
{
const char * const fromLimBefore = fromLim;
align_limit_to_full_utf8_characters(*fromP, &fromLim);
_INTERNAL_trim_to_complete_utf8_characters(*fromP, &fromLim);
if (fromLim < fromLimBefore) {
input_incomplete = true;
}

View File

@ -757,7 +757,7 @@ START_TEST(test_utf8_auto_align)
const char * const fromLimInitially = fromLim;
ptrdiff_t actualMovementInChars;
align_limit_to_full_utf8_characters(cases[i].input, &fromLim);
_INTERNAL_trim_to_complete_utf8_characters(cases[i].input, &fromLim);
actualMovementInChars = (fromLim - fromLimInitially);
if (actualMovementInChars != cases[i].expectedMovementInChars) {