Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::json_relaxed::CharValueTable Struct Reference

#include <json_relaxed.hpp>

Public Member Functions

 CharValueTable ()
 
uint8_t operator[] (char index) const
 

Public Attributes

uint8_t c2v [0x100]
 

Detailed Description

Definition at line 244 of file json_relaxed.hpp.

Constructor & Destructor Documentation

◆ CharValueTable()

fc::json_relaxed::CharValueTable::CharValueTable ( )
inline

Definition at line 247 of file json_relaxed.hpp.

248 {
249 for( size_t i=0; i<0x100; i++ )
250 c2v[i] = 0xFF;
251 c2v[(unsigned char)'0'] = 0;
252 c2v[(unsigned char)'1'] = 1;
253 c2v[(unsigned char)'2'] = 2;
254 c2v[(unsigned char)'3'] = 3;
255 c2v[(unsigned char)'4'] = 4;
256 c2v[(unsigned char)'5'] = 5;
257 c2v[(unsigned char)'6'] = 6;
258 c2v[(unsigned char)'7'] = 7;
259 c2v[(unsigned char)'8'] = 8;
260 c2v[(unsigned char)'9'] = 9;
261 c2v[(unsigned char)'a'] = c2v[(unsigned char)'A'] = 10;
262 c2v[(unsigned char)'b'] = c2v[(unsigned char)'B'] = 11;
263 c2v[(unsigned char)'c'] = c2v[(unsigned char)'C'] = 12;
264 c2v[(unsigned char)'d'] = c2v[(unsigned char)'D'] = 13;
265 c2v[(unsigned char)'e'] = c2v[(unsigned char)'E'] = 14;
266 c2v[(unsigned char)'f'] = c2v[(unsigned char)'F'] = 15;
267 c2v[(unsigned char)'g'] = c2v[(unsigned char)'G'] = 16;
268 c2v[(unsigned char)'h'] = c2v[(unsigned char)'H'] = 17;
269 c2v[(unsigned char)'i'] = c2v[(unsigned char)'I'] = 18;
270 c2v[(unsigned char)'j'] = c2v[(unsigned char)'J'] = 19;
271 c2v[(unsigned char)'k'] = c2v[(unsigned char)'K'] = 20;
272 c2v[(unsigned char)'l'] = c2v[(unsigned char)'L'] = 21;
273 c2v[(unsigned char)'m'] = c2v[(unsigned char)'M'] = 22;
274 c2v[(unsigned char)'n'] = c2v[(unsigned char)'N'] = 23;
275 c2v[(unsigned char)'o'] = c2v[(unsigned char)'O'] = 24;
276 c2v[(unsigned char)'p'] = c2v[(unsigned char)'P'] = 25;
277 c2v[(unsigned char)'q'] = c2v[(unsigned char)'Q'] = 26;
278 c2v[(unsigned char)'r'] = c2v[(unsigned char)'R'] = 27;
279 c2v[(unsigned char)'s'] = c2v[(unsigned char)'S'] = 28;
280 c2v[(unsigned char)'t'] = c2v[(unsigned char)'T'] = 29;
281 c2v[(unsigned char)'u'] = c2v[(unsigned char)'U'] = 30;
282 c2v[(unsigned char)'v'] = c2v[(unsigned char)'V'] = 31;
283 c2v[(unsigned char)'w'] = c2v[(unsigned char)'W'] = 32;
284 c2v[(unsigned char)'x'] = c2v[(unsigned char)'X'] = 33;
285 c2v[(unsigned char)'y'] = c2v[(unsigned char)'Y'] = 34;
286 c2v[(unsigned char)'z'] = c2v[(unsigned char)'Z'] = 35;
287 return;
288 }

Member Function Documentation

◆ operator[]()

uint8_t fc::json_relaxed::CharValueTable::operator[] ( char index) const
inline

Definition at line 290 of file json_relaxed.hpp.

290{ return c2v[index & 0xFF]; }

Member Data Documentation

◆ c2v

uint8_t fc::json_relaxed::CharValueTable::c2v[0x100]

Definition at line 292 of file json_relaxed.hpp.


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