CharacterCategory.h 698 B

1234567891011121314151617181920212223242526272829303132
  1. // Scintilla source code edit control
  2. /** @file CharacterCategory.h
  3. ** Returns the Unicode general category of a character.
  4. **/
  5. // Copyright 2013 by Neil Hodgson <neilh@scintilla.org>
  6. // The License.txt file describes the conditions under which this software may be distributed.
  7. #ifndef CHARACTERCATEGORY_H
  8. #define CHARACTERCATEGORY_H
  9. #ifdef SCI_NAMESPACE
  10. namespace Scintilla {
  11. #endif
  12. enum CharacterCategory {
  13. ccLu, ccLl, ccLt, ccLm, ccLo,
  14. ccMn, ccMc, ccMe,
  15. ccNd, ccNl, ccNo,
  16. ccPc, ccPd, ccPs, ccPe, ccPi, ccPf, ccPo,
  17. ccSm, ccSc, ccSk, ccSo,
  18. ccZs, ccZl, ccZp,
  19. ccCc, ccCf, ccCs, ccCo, ccCn
  20. };
  21. CharacterCategory CategoriseCharacter(int character);
  22. #ifdef SCI_NAMESPACE
  23. }
  24. #endif
  25. #endif