Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5KB

  1. //-----------------------------------------------------------------------------
  2. // Project : SDK Core
  3. //
  4. // Category : SDK Core Interfaces
  5. // Filename : pluginterfaces/base/conststringtable.h
  6. // Created by : Steinberg, 09/2007
  7. // Description : constant unicode string table
  8. //
  9. //-----------------------------------------------------------------------------
  10. // This file is part of a Steinberg SDK. It is subject to the license terms
  11. // in the LICENSE file found in the top-level directory of this distribution
  12. // and at www.steinberg.net/sdklicenses.
  13. // No part of the SDK, including this file, may be copied, modified, propagated,
  14. // or distributed except according to the terms contained in the LICENSE file.
  15. //-----------------------------------------------------------------------------
  16. #pragma once
  17. #include "ftypes.h"
  18. namespace Steinberg {
  19. //------------------------------------------------------------------------
  20. /** Constant unicode string table.
  21. Used for conversion from ASCII string literals to char16.
  22. */
  23. //------------------------------------------------------------------------
  24. class ConstStringTable
  25. {
  26. public:
  27. static ConstStringTable* instance ();
  28. /** Returns a char16 string of a ASCII string literal*/
  29. const char16* getString (const char8* str) const;
  30. /** Returns a char16 character of a ASCII character */
  31. const char16 getString (const char8 str) const;
  32. protected:
  33. ConstStringTable ();
  34. ~ConstStringTable ();
  35. };
  36. //------------------------------------------------------------------------
  37. } // namespace Steinberg