VST 3 SDK VST 3.7 SDK for developing VST plug-in

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
Functions
VST3::StringConvert Namespace Reference

## Functions
std::u16string | convert (const std::string &utf8Str)
| convert an UTF-8 string to an UTF-16 string
bool | convert (const std::string &utf8Str, Steinberg::Vst::String128 str)
| convert an UTF-8 string to an UTF-16 string buffer with max 127 characters
bool | convert (const std::string &utf8Str, Steinberg::Vst::TChar *str, uint32_t maxCharacters)
| convert an UTF-8 string to an UTF-16 string buffer
std::string | convert (const Steinberg::Vst::TChar *str)
| convert an UTF-16 string buffer to an UTF-8 string
std::string | convert (const Steinberg::Vst::TChar *str, uint32_t max)
| convert an UTF-16 string buffer to an UTF-8 string
std::string | convert (const std::u16string &str)
| convert an UTF-16 string to an UTF-8 string
std::string | convert (const char *str, uint32_t max)
| convert a ASCII string buffer to an UTF-8 string

## Function Documentation

std::u16string convert | ( | const std::string & | utf8Str | ) |

convert an UTF-8 string to an UTF-16 string

Parameters

  utf8Str | UTF-8 string

Returns
  UTF-16 string

bool convert | ( | const std::string & | utf8Str,
|  | Steinberg::Vst::String128 | str
| ) |  |

convert an UTF-8 string to an UTF-16 string buffer with max 127 characters

Parameters

  utf8Str | UTF-8 string
  str | UTF-16 string buffer

Returns
  true on success

bool convert | ( | const std::string & | utf8Str,
|  | Steinberg::Vst::TChar * | str,
|  | uint32_t | maxCharacters
| ) |  |

convert an UTF-8 string to an UTF-16 string buffer

Parameters

  utf8Str | UTF-8 string
  str | UTF-16 string buffer
  maxCharacters | max characters that fit into str

Returns
  true on success

std::string convert | ( | const Steinberg::Vst::TChar * | str | ) |

convert an UTF-16 string buffer to an UTF-8 string

Parameters

  str | UTF-16 string buffer

Returns
  UTF-8 string

std::string convert | ( | const Steinberg::Vst::TChar * | str,
|  | uint32_t | max
| ) |  |

convert an UTF-16 string buffer to an UTF-8 string

Parameters

  str | UTF-16 string buffer
  max | maximum characters in str

Returns
  UTF-8 string

std::string convert | ( | const std::u16string & | str | ) |

convert an UTF-16 string to an UTF-8 string

Parameters

  str | UTF-16 string

Returns
  UTF-8 string

std::string convert | ( | const char * | str,
|  | uint32_t | max
| ) |  |

convert a ASCII string buffer to an UTF-8 string

Parameters

  str | ASCII string buffer
  max | maximum characters in str

Returns
  UTF-8 string

Empty

Copyright ©2024 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.