csrutf8.h 945 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. **********************************************************************
  5. * Copyright (C) 2005-2012, International Business Machines
  6. * Corporation and others. All Rights Reserved.
  7. **********************************************************************
  8. */
  9. #ifndef __CSRUTF8_H
  10. #define __CSRUTF8_H
  11. #include "unicode/utypes.h"
  12. #if !UCONFIG_NO_CONVERSION
  13. #include "csrecog.h"
  14. U_NAMESPACE_BEGIN
  15. /**
  16. * Charset recognizer for UTF-8
  17. *
  18. * @internal
  19. */
  20. class CharsetRecog_UTF8: public CharsetRecognizer {
  21. public:
  22. virtual ~CharsetRecog_UTF8();
  23. const char *getName() const;
  24. /* (non-Javadoc)
  25. * @see com.ibm.icu.text.CharsetRecognizer#match(com.ibm.icu.text.CharsetDetector)
  26. */
  27. UBool match(InputText *input, CharsetMatch *results) const;
  28. };
  29. U_NAMESPACE_END
  30. #endif
  31. #endif /* __CSRUTF8_H */