Skip to content
Prev 25067 / 63424 Next

grep with fixed=TRUE and ignore.case=TRUE

On Thu, 17 May 2007, Petr Savicky wrote:

            
I don't see it in Rdll.hide.  It is a C99 function (see your unix man 
page).
UTF-8 is not usable under Windows, but tolower works in Windows DBCS (in 
so far as that makes sense: Chinese chars do not have 'case').

Rmbrtowc reflects an attempt to add UTF-8 support on Windows, but that is 
not currently active.
He may, but that is not what 'ignore case' means, more like 'case 
honouring'.
Yes, there is a comment on the help page to that effect.  But these are 
highly atypical uses. Try perl=TRUE, and be aware that the locale matters 
a lot in such tests (via the charset).

No one is attempting to make R a fast string-processing language and so 
developers resources are spent on performance where it matters to more 
typical usage.  (E.g. reducing duplication in as.double and friends speeds 
up just about every R session, and speeds up some numerical sessions 
dramatically.)