src/ccstruct/pageres.cpp
static int is_simple_quote(const char *signed_str, int length) {
  const auto *str = reinterpret_cast<const unsigned char *>(signed_str);
  // Standard 1 byte quotes.
  return (length == 1 && (*str == '\'' || *str == '`')) ||
         // UTF-8 3 bytes curved quotes.
         (length == 3 &&
          ((*str == 0xe2 && *(str + 1) == 0x80 && *(str + 2) == 0x98) ||
           (*str == 0xe2 && *(str + 1) == 0x80 && *(str + 2) == 0x99)));
}
// Utility function for fix_quotes
// Return true if the next character in the string (given the UTF8 length in
// bytes) is a quote character.
Utility function for fix_quotes
Return true if the next character in the string (given the UTF8 length in
bytes) is a quote character.
Utility function for fix_quotes Return true if the next character in the string ( given the UTF8 length in bytes ) is a quote character .
static int is_simple_quote(const char *signed_str, int length) {
  const auto *str = reinterpret_cast<const unsigned char *>(signed_str);
  return (length == 1 && (*str == '\'' || *str == '`')) ||
         (length == 3 &&
          ((*str == 0xe2 && *(str + 1) == 0x80 && *(str + 2) == 0x98) ||
           (*str == 0xe2 && *(str + 1) == 0x80 && *(str + 2) == 0x99)));
}
static int is_simple_quote ( const char * signed_str , int length ) { const auto * str = reinterpret_cast < const unsigned char * > ( signed_str ) ; return ( length == 1 && ( * str == ' \' ' || * str == ' ' ) ) || ( length == 3 && ( ( * str == 0xe2 && * ( str + 1 ) == 0x80 && * ( str + 2 ) == 0x98 ) || ( * str == 0xe2 && * ( str + 1 ) == 0x80 && * ( str + 2 ) == 0x99 ) ) ) ; }
Utility function for fix_quotes
Return true if the next character in the string (given the UTF8 length in
bytes) is a quote character.
Utility function for fix_quotes Return true if the next character in the string ( given the UTF8 length in bytes ) is a quote character .
// Standard 1 byte quotes. // UTF-8 3 bytes curved quotes.