Sha256: 38a6e87b800cd9014cd27c1bf574423c6b506da3f2c8d4aed71bcf1d2d744aeb

Contents?: true

Size: 637 Bytes

Versions: 59

Compression:

Stored size: 637 Bytes

Contents

#ifndef GUMBO_CHAR_REF_H_
#define GUMBO_CHAR_REF_H_

#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

// Value that indicates no character was produced.
#define kGumboNoChar (-1)

// On input, str points to the start of the string to match and size is the
// size of the string.
//
// Returns the length of the match or 0 if there is no match.
// output[0] contains the first codepoint and output[1] contains the second if
// there are two, otherwise output[1] contains kGumboNoChar.
size_t match_named_char_ref (
  const char *str,
  size_t size,
  int output[2]
);

#ifdef __cplusplus
}
#endif

#endif // GUMBO_CHAR_REF_H_

Version data entries

59 entries across 59 versions & 3 rubygems

Version Path
nokogiri-1.18.5 gumbo-parser/src/char_ref.h
nokogiri-1.18.4 gumbo-parser/src/char_ref.h
nokogiri-1.18.3 gumbo-parser/src/char_ref.h
nokogiri-1.18.2 gumbo-parser/src/char_ref.h
nokogiri-1.18.1 gumbo-parser/src/char_ref.h
nokogiri-1.18.0 gumbo-parser/src/char_ref.h
nokogiri-1.18.0.rc1 gumbo-parser/src/char_ref.h
nokogiri-1.17.2 gumbo-parser/src/char_ref.h
nokogiri-1.17.1 gumbo-parser/src/char_ref.h
nokogiri-1.17.0 gumbo-parser/src/char_ref.h
nokogiri-1.15.7 gumbo-parser/src/char_ref.h
nokogiri-1.16.8 gumbo-parser/src/char_ref.h
nokogiri-1.16.7 gumbo-parser/src/char_ref.h
nokogiri-1.16.6 gumbo-parser/src/char_ref.h
nokogiri-1.16.4 gumbo-parser/src/char_ref.h
nokogiri-1.15.6 gumbo-parser/src/char_ref.h
nokogiri-1.16.3 gumbo-parser/src/char_ref.h
nokogiri-1.16.2 gumbo-parser/src/char_ref.h
nokogiri-1.16.1 gumbo-parser/src/char_ref.h
nokogiri-1.16.0 gumbo-parser/src/char_ref.h