Abbreviations, simple: Difference between revisions
m
Reformatted C++ code
(→{{header|Wren}}: Now uses 'fmt' module.) |
m (Reformatted C++ code) |
||
Line 254:
{
public:
private:
};
// cmd is assumed to be all uppercase
command::command(const std::string& cmd, size_t min_len)
{
}
Line 272:
bool command::match(const std::string& str) const
{
}
bool parse_integer(const std::string& word, int& value)
{
{
}
{
}
}
Line 297:
void uppercase(std::string& str)
{
}
Line 304:
{
public:
private:
};
command_list::command_list(const char* table)
{
{
}
{
}
}
const command* command_list::find_command(const std::string& word) const
{
{
}
}
std::string test(const command_list& commands, const std::string& input)
{
{
}
}
int main()
{
}</lang>
|