[DiscordArchive] anyone point me to the documentation for Tail for the new way were supposed to do commands?
[DiscordArchive] anyone point me to the documentation for Tail for the new way were supposed to do commands?
Archived author: joe • Posted: 2024-07-27T00:43:16.485000+00:00
Original source
anyone point me to the documentation for Tail for the new way were supposed to do commands?
Archived author: Nyeriah • Posted: 2024-07-27T01:00:24.846000+00:00
Original source
sorry, not a lot of documentation
Archived author: Nyeriah • Posted: 2024-07-27T01:00:32.979000+00:00
Original source
check for other occurrences of it in the code
Archived author: Nyeriah • Posted: 2024-07-27T01:00:42.786000+00:00
Original source
there are other commands using it already
Archived author: Nyeriah • Posted: 2024-07-27T01:01:14.554000+00:00
Original source
I believe tail does the tokenization process for you e.g splits the string after each space
Archived author: joe • Posted: 2024-07-27T01:55:47.839000+00:00
Original source
oooh
Archived author: joe • Posted: 2024-07-27T01:56:07.893000+00:00
Original source
i didn't really see any other examples outside of the cs_go.cpp files
Archived author: joe • Posted: 2024-07-27T01:56:29.191000+00:00
Original source
does it give me an array of strings or something? from the input?
tof(matchStr));Archived author: joe • Posted: 2024-07-27T01:57:57.499000+00:00
Original source
the only sample doesn't seem like it does the tokenization for you still have to parse it?
```
// extract float and integer values from the input
std::vector<float> locationValues;
std::wregex floatRegex(L"(-?\\d+(?:\\.\\d+)?)");
std::wsregex_iterator floatRegexIterator(wInputCoords.begin(), wInputCoords.end(), floatRegex);
std::wsregex_iterator end;
while (floatRegexIterator != end)
{
std::wsmatch match = *floatRegexIterator;
std::wstring matchStr = match.str();
// try to convert the match to a float
try
{
locationValues.push_back(std:
tof(matchStr));
}
// if the match is not a float, do not add it to the vector
catch (std::invalid_argument const&){}
++floatRegexIterator;
```
Archived author: joe • Posted: 2024-07-27T01:58:44.826000+00:00
Original source
i have it already working the const char* way, is there any value converting this:
```
static bool HandleAccountSetEmailCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
///- Get the command line arguments
char* account = strtok((char*)args, " ");
char* email = strtok(nullptr, " ");
char* emailConfirmation = strtok(nullptr, " ");
```