AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Impl::ChatCommands::ArgInfo< std::string_view, void > Struct Reference

#include "ChatCommandArgs.h"

Static Public Member Functions

static ChatCommandResult TryConsume (std::string_view &val, ChatHandler const *, std::string_view args)
 

Detailed Description

Member Function Documentation

◆ TryConsume()

static ChatCommandResult Acore::Impl::ChatCommands::ArgInfo< std::string_view, void >::TryConsume ( std::string_view &  val,
ChatHandler const *  ,
std::string_view  args 
)
inlinestatic
82 {
83 auto [token, next] = tokenize(args);
84 if (token.empty())
85 return std::nullopt;
86 val = token;
87 return next;
88 }
TokenizeResult tokenize(std::string_view args)
Definition: ChatCommandHelpers.h:55

References Acore::Impl::ChatCommands::tokenize().