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
81 {
82 auto [token, next] = tokenize(args);
83 if (token.empty())
84 return std::nullopt;
85 val = token;
86 return next;
87 }
TokenizeResult tokenize(std::string_view args)
Definition: ChatCommandHelpers.h:54

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