RamonUnch / GreenPad

Fork from roytam1 fork from original GreenPad
21 stars 0 forks source link

TextFile Reader improvements #108

Closed RamonUnch closed 1 year ago

RamonUnch commented 1 year ago
  1. Put the BOM code in the specific virtual SkipBOMIfNeeded() instead of in the pain read loop.
  2. GetC() does not need to be virtual in rBasicUTF() because we never override it.
  3. Make endianess as template instead of parameter (faster).
  4. do not use rUCS as base class for rUtf32 so that rUCS can be marked as final (faster with gcc build).
  5. Make fixed and mode_hz const in rIso2022, we could use template parameters but speed benefit should be small.