Home
last modified time | relevance | path

Searched refs:expected_encoding (Results 1 – 2 of 2) sorted by relevance

/PHP-7.1/ext/zip/lib/
H A Dzip_string.c132 zip_encoding_type_t expected_encoding; in _zip_string_new() local
139 expected_encoding = ZIP_ENCODING_UNKNOWN; in _zip_string_new()
142 expected_encoding = ZIP_ENCODING_UTF8_KNOWN; in _zip_string_new()
145 expected_encoding = ZIP_ENCODING_CP437; in _zip_string_new()
169 if (expected_encoding != ZIP_ENCODING_UNKNOWN) { in _zip_string_new()
170 if (_zip_guess_encoding(s, expected_encoding) == ZIP_ENCODING_ERROR) { in _zip_string_new()
H A Dzip_utf-8.c117 _zip_guess_encoding(zip_string_t *str, zip_encoding_type_t expected_encoding) in _zip_guess_encoding() argument
166 if (expected_encoding != ZIP_ENCODING_UNKNOWN) { in _zip_guess_encoding()
167 if (expected_encoding == ZIP_ENCODING_UTF8_KNOWN && enc == ZIP_ENCODING_UTF8_GUESSED) in _zip_guess_encoding()
170 if (expected_encoding != enc && enc != ZIP_ENCODING_ASCII) in _zip_guess_encoding()

Completed in 8 milliseconds