Leave no doubt about align_limit_to_full_utf8_characters being internal
This commit is contained in:
parent
a4321e4f29
commit
8711ee3054
@ -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
|
||||
|
@ -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@
|
@ -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@
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user