MCPcopy Create free account
hub / github.com/clice-io/clice / prefixes

Function prefixes

src/command/argument_parser.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40constexpr std::span<const std::string_view> prefixes(unsigned offset) {
41 switch(offset) {
42 case 0: return eo::pfx_none;
43 case 1: return eo::pfx_dash;
44 case 3: return eo::pfx_dash_double;
45 case 6: return eo::pfx_double;
46 case 8: return eo::pfx_all;
47 case 12: return eo::pfx_slash_dash;
48 default: std::unreachable();
49 }
50}
51
52constexpr std::string_view str_at(unsigned offset) {
53 auto ref = OptionStrTable[llvm::StringTable::Offset(offset)];
54 return {ref.data(), ref.size()};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected