Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] anyone point me to the documentation for Tail for the new way were supposed to do commands?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
07-27-2024, 12:43 AM
#1
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?
rektbyfaith
07-27-2024, 12:43 AM #1

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?

rektbyfaith
Administrator
0
07-27-2024, 01:00 AM
#2
Archived author: Nyeriah • Posted: 2024-07-27T01:00:24.846000+00:00
Original source

sorry, not a lot of documentation
rektbyfaith
07-27-2024, 01:00 AM #2

Archived author: Nyeriah • Posted: 2024-07-27T01:00:24.846000+00:00
Original source

sorry, not a lot of documentation

rektbyfaith
Administrator
0
07-27-2024, 01:00 AM
#3
Archived author: Nyeriah • Posted: 2024-07-27T01:00:32.979000+00:00
Original source

check for other occurrences of it in the code
rektbyfaith
07-27-2024, 01:00 AM #3

Archived author: Nyeriah • Posted: 2024-07-27T01:00:32.979000+00:00
Original source

check for other occurrences of it in the code

rektbyfaith
Administrator
0
07-27-2024, 01:00 AM
#4
Archived author: Nyeriah • Posted: 2024-07-27T01:00:42.786000+00:00
Original source

there are other commands using it already
rektbyfaith
07-27-2024, 01:00 AM #4

Archived author: Nyeriah • Posted: 2024-07-27T01:00:42.786000+00:00
Original source

there are other commands using it already

rektbyfaith
Administrator
0
07-27-2024, 01:01 AM
#5
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
rektbyfaith
07-27-2024, 01:01 AM #5

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

rektbyfaith
Administrator
0
07-27-2024, 01:55 AM
#6
Archived author: joe • Posted: 2024-07-27T01:55:47.839000+00:00
Original source

oooh
rektbyfaith
07-27-2024, 01:55 AM #6

Archived author: joe • Posted: 2024-07-27T01:55:47.839000+00:00
Original source

oooh

rektbyfaith
Administrator
0
07-27-2024, 01:56 AM
#7
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
rektbyfaith
07-27-2024, 01:56 AM #7

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

rektbyfaith
Administrator
0
07-27-2024, 01:56 AM
#8
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?
rektbyfaith
07-27-2024, 01:56 AM #8

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?

rektbyfaith
Administrator
0
07-27-2024, 01:57 AM
#9
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:Confusedtof(matchStr));
}
// if the match is not a float, do not add it to the vector
catch (std::invalid_argument const&){}

++floatRegexIterator;

```
rektbyfaith
07-27-2024, 01:57 AM #9

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:Confusedtof(matchStr));
}
// if the match is not a float, do not add it to the vector
catch (std::invalid_argument const&){}

++floatRegexIterator;

```

rektbyfaith
Administrator
0
07-27-2024, 01:58 AM
#10
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, " ");

```
rektbyfaith
07-27-2024, 01:58 AM #10

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, " ");

```

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)