[R-pkg-devel] Why is Rf_Seql hidden?

Tony Wilkes tony_@_w||ke@ @end|ng |rom out|ook@com
Sat Nov 9 07:44:27 CET 2024


Hi everyone,

Checking if 2 strings are equal, when these strings might be of different encoding, whilst still maintaining good performance, can be quite difficult.
But R seems to manage reasonably well.
It appears that R uses Rf_seql() to check if 2 strings are equal.
But Rf_seql is not public in R's C API; it is hidden.
So I have 2 questions:

1) ​Why is Rf_Seql() hidden? (what would be the problem if it were made public?)
2) What would be an alternative way to re-create Rf_Seql (a way that is relatively stable)? (An example C function that re-creates Rf_seql() using R's public C Api would be really nice.)

Kind regards,


Tony.


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list