如何将 JUCE 字符串转换为 STD::string

Eth*_*ter 1 c++ juce

您好,有什么方法可以将 JUCE 字符串转换为 std::string 吗?我似乎无法弄清楚如何以任何方式做到这一点。

string GetGate() { return (to_string(Gate.char)); };
juce::String Gate = "A1";
Run Code Online (Sandbox Code Playgroud)