decoder.h 491 B

1234567891011121314151617
  1. #pragma once
  2. #include <util/generic/string.h>
  3. struct TEntity {
  4. size_t Len;
  5. wchar32 Codepoint1;
  6. wchar32 Codepoint2;
  7. };
  8. constexpr size_t MaxNamedEntityLength = 32; //CounterClockwiseContourIntegral;
  9. //! Find if string prefix may be considered as entity name.
  10. //! (';' is a part of entity name)
  11. //! @param inp - a pointer after '&'.
  12. //! @param len - inspected string leng (may be more than simple entity).
  13. bool DecodeNamedEntity(const unsigned char* inp, size_t len, TEntity*);