cnpack / cnvcl

CnPack VCL Components
http://www.cnpack.org
341 stars 103 forks source link

TrimBOM shouldn't search the whole string if there is no UTF8 BOM #8

Closed ahausladen closed 5 years ago

ahausladen commented 5 years ago

The TrimBOM function used Pos to find the BOM. But if there is no BOM the whole string was searched.