Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-01

Ansi version of string functions

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

Hi All,

I would like to know what is the difference between AnsiStrscan and strscan, or, generically, the Ansi* functions versus non-ansi versions?

Thanks a lot.

Xiangrong

Reply by email

Jonas Maebe
to Xiangrong Fang
Xiangrong Fang wrote
I would like to know what is the difference between AnsiStrscan and strscan, or, generically, the Ansi* functions versus non-ansi versions?

In general, the difference between Ansi* functions and non-ansi versions is that the Ansi* versions take (or should take) the locale into account (e.g. the case-insensitive Ansi* routines should consider "i" to be the lowercase version of "İ" instead of of "I" in a Turkish locale). In practice, this has not yet been implemented for all of them (see rtl/objpas/sysutils/sysansi.inc, patches are welcome).

For some routines, it is also not clear in what way they could take the locale into account at all and as such AnsiStrscan and Strscan are identical.

Jonas

Reply by email