[fpc-pascal] String type with specified length and without codepage
Gabor Boros
mlnglsts at bgss.hu
Sun Aug 18 11:57:23 CEST 2019
Hi All,
I try to rewrite some C/C++ code with FPC. I don't know which is the
best string handling technique in this case. The original code for example:
char b_l[b_list_len][bn_len+1];
char s_n[sn_len+1];
I do not want to fight with "char"s or "byte"s. Just want to use the
easier way which have the best performance. (The original code use
strncpy.) I can use "s_n:String[sn_len]", but "String" is ShortString
and it's have CP_ACP codepage if I understand the wiki correctly. So I
need a string type with explicit defined length and with CP_NONE
codepage for a Linux/Windows multi platform application. Any idea?
Gabor
More information about the fpc-pascal
mailing list