issues
search
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
Put the BOM code in the specific
virtual SkipBOMIfNeeded()
instead of in the pain read loop.
GetC()
does not need to be virtual in rBasicUTF() because we never override it.
Make endianess as template instead of parameter (faster).
do not use
rUCS
as base class for
rUtf32
so that rUCS can be marked as
final
(faster with gcc build).
Make fixed and mode_hz const in rIso2022, we could use template parameters but speed benefit should be small.
virtual SkipBOMIfNeeded()
instead of in the pain read loop.GetC()
does not need to be virtual in rBasicUTF() because we never override it.rUCS
as base class forrUtf32
so that rUCS can be marked asfinal
(faster with gcc build).