nultrans.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // © 2016 and later: Unicode, Inc. and others.
  2. // License & terms of use: http://www.unicode.org/copyright.html
  3. /*
  4. **********************************************************************
  5. * Copyright (c) 2000-2007, International Business Machines
  6. * Corporation and others. All Rights Reserved.
  7. **********************************************************************
  8. * Date Name Description
  9. * 01/11/2000 aliu Creation.
  10. **********************************************************************
  11. */
  12. #ifndef NULTRANS_H
  13. #define NULTRANS_H
  14. #include "unicode/utypes.h"
  15. #if !UCONFIG_NO_TRANSLITERATION
  16. #include "unicode/translit.h"
  17. U_NAMESPACE_BEGIN
  18. /**
  19. * A transliterator that leaves text unchanged.
  20. * @author Alan Liu
  21. * @internal Use transliterator factory methods instead since this class will be removed in that release.
  22. */
  23. class NullTransliterator : public Transliterator {
  24. public:
  25. /**
  26. * Constructs a transliterator.
  27. * @internal Use transliterator factory methods instead since this class will be removed in that release.
  28. */
  29. NullTransliterator();
  30. /**
  31. * Destructor.
  32. * @internal Use transliterator factory methods instead since this class will be removed in that release.
  33. */
  34. virtual ~NullTransliterator();
  35. /**
  36. * Transliterator API.
  37. * @internal Use transliterator factory methods instead since this class will be removed in that release.
  38. */
  39. virtual NullTransliterator* clone() const;
  40. /**
  41. * Implements {@link Transliterator#handleTransliterate}.
  42. * @internal Use transliterator factory methods instead since this class will be removed in that release.
  43. */
  44. virtual void handleTransliterate(Replaceable& text, UTransPosition& offset,
  45. UBool isIncremental) const;
  46. /**
  47. * ICU "poor man's RTTI", returns a UClassID for the actual class.
  48. */
  49. virtual UClassID getDynamicClassID() const;
  50. /**
  51. * ICU "poor man's RTTI", returns a UClassID for this class.
  52. */
  53. U_I18N_API static UClassID U_EXPORT2 getStaticClassID();
  54. };
  55. U_NAMESPACE_END
  56. #endif /* #if !UCONFIG_NO_TRANSLITERATION */
  57. #endif