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.

45 lines
1.4KB

  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. class ConstStringTable
  24. {
  25. public:
  26. static ConstStringTable* instance ();
  27. /** Returns a char16 string of a ASCII string literal*/
  28. const char16* getString (const char8* str) const;
  29. /** Returns a char16 character of a ASCII character */
  30. const char16 getString (const char8 str) const;
  31. protected:
  32. ConstStringTable ();
  33. ~ConstStringTable ();
  34. };
  35. //------------------------------------------------------------------------
  36. } // namespace Steinberg