mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 08:53:53 +08:00
.
This commit is contained in:
parent
efa3366259
commit
d896f14d92
@ -363,7 +363,8 @@ namespace
|
|||||||
void F0100F6A00A684000(TextBuffer *buffer, HookParam *hp)
|
void F0100F6A00A684000(TextBuffer *buffer, HookParam *hp)
|
||||||
{
|
{
|
||||||
auto s = buffer->strA();
|
auto s = buffer->strA();
|
||||||
std::sregex_token_iterator it(s.begin(), s.end(), std::regex("(?=@.)"), -1);
|
auto r = std::regex("(?=@.)");
|
||||||
|
std::sregex_token_iterator it(s.begin(), s.end(), r, -1);
|
||||||
std::sregex_token_iterator end;
|
std::sregex_token_iterator end;
|
||||||
std::vector<std::string> parts(it, end);
|
std::vector<std::string> parts(it, end);
|
||||||
s = "";
|
s = "";
|
||||||
@ -423,7 +424,8 @@ namespace
|
|||||||
void F01006590155AC000(TextBuffer *buffer, HookParam *hp)
|
void F01006590155AC000(TextBuffer *buffer, HookParam *hp)
|
||||||
{
|
{
|
||||||
auto s = buffer->strA();
|
auto s = buffer->strA();
|
||||||
std::sregex_token_iterator it(s.begin(), s.end(), std::regex("(?=@.)"), -1);
|
auto r = std::regex("(?=@.)");
|
||||||
|
std::sregex_token_iterator it(s.begin(), s.end(), r, -1);
|
||||||
std::sregex_token_iterator end;
|
std::sregex_token_iterator end;
|
||||||
|
|
||||||
std::vector<std::string> parts(it, end);
|
std::vector<std::string> parts(it, end);
|
||||||
@ -502,8 +504,8 @@ namespace
|
|||||||
static std::string readString_savedSentence = "";
|
static std::string readString_savedSentence = "";
|
||||||
static bool readString_playerNameFlag = false;
|
static bool readString_playerNameFlag = false;
|
||||||
static std::string readString_playerName = u8"ラピス";
|
static std::string readString_playerName = u8"ラピス";
|
||||||
|
auto r = std::regex("(?=@.)");
|
||||||
std::sregex_token_iterator it(s.begin(), s.end(), std::regex("(?=@.)"), -1);
|
std::sregex_token_iterator it(s.begin(), s.end(), r, -1);
|
||||||
std::sregex_token_iterator end;
|
std::sregex_token_iterator end;
|
||||||
|
|
||||||
std::vector<std::string> parts(it, end);
|
std::vector<std::string> parts(it, end);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user