Doxygen
Loading...
Searching...
No Matches
fmt::formatter< SrcLangExt > Struct Reference

adds support for formatting SrcLangExt More...

#include <src/message.h>

+ Inheritance diagram for fmt::formatter< SrcLangExt >:
+ Collaboration diagram for fmt::formatter< SrcLangExt >:

Public Member Functions

auto format (SrcLangExt lang, format_context &ctx) const
 

Detailed Description

adds support for formatting SrcLangExt

Definition at line 235 of file message.h.

Member Function Documentation

◆ format()

auto fmt::formatter< SrcLangExt >::format ( SrcLangExt lang,
format_context & ctx ) const
inline

Definition at line 237 of file message.h.

237 {
238 std::string result="Unknown";
239 switch (lang)
240 {
241 case SrcLangExt::Unknown: result="Unknown"; break;
242 case SrcLangExt::IDL: result="IDL"; break;
243 case SrcLangExt::Java: result="Java"; break;
244 case SrcLangExt::CSharp: result="C#"; break;
245 case SrcLangExt::D: result="D"; break;
246 case SrcLangExt::PHP: result="PHP"; break;
247 case SrcLangExt::ObjC: result="Objective-C"; break;
248 case SrcLangExt::Cpp: result="C++"; break;
249 case SrcLangExt::JS: result="Javascript"; break;
250 case SrcLangExt::Python: result="Python"; break;
251 case SrcLangExt::Fortran: result="Fortran"; break;
252 case SrcLangExt::VHDL: result="VHDL"; break;
253 case SrcLangExt::XML: result="XML"; break;
254 //case SrcLangExt::Tcl: result="Tcl"; break;
255 case SrcLangExt::Markdown: result="Markdown"; break;
256 case SrcLangExt::SQL: result="SQL"; break;
257 case SrcLangExt::Slice: result="Slice"; break;
258 case SrcLangExt::Lex: result="Lex"; break;
259 }
261 }

References Cpp, CSharp, D, Fortran, IDL, Java, JS, Lex, Markdown, ObjC, PHP, Python, Slice, SQL, Unknown, VHDL, and XML.


The documentation for this struct was generated from the following file: