2#ifndef LIBSBX_SCRIPTING_MANAGED_STRING_HPP_
3#define LIBSBX_SCRIPTING_MANAGED_STRING_HPP_
7#include <libsbx/scripting/managed/core.hpp>
9namespace sbx::scripting::managed {
17 static auto create(
const char* str) ->
string;
18 static auto create(std::string_view str) ->
string;
19 static auto destroy(
string& str) -> void;
21 auto assign(std::string_view str) -> void;
23 operator std::string()
const;
25 auto operator==(
const string& other)
const -> bool;
26 auto operator==(std::string_view other)
const -> bool;
28 auto data() -> char_type*;
29 auto data()
const ->
const char_type*;
42 static auto convert_utf8_to_wide(std::string_view str) -> string_type;
43 static auto convert_wide_to_utf8(string_view_type str) -> std::string;
Definition: string.hpp:38
Definition: string.hpp:11