Dear Wiki user, You have subscribed to a wiki page or wiki category on "Stdcxx Wiki" for change notification.
The following page has been changed by MartinSebor: http://wiki.apache.org/stdcxx/LocaleLookup The comment on the change is: Added a comment on rw_fnmatch. ------------------------------------------------------------------------------ [[Anchor(Part1)]] = Part 1 (STDCXX-714) = - The first thing that we needed was to write the function for doing name matching and add it to the test suite.. Martin has already added an implementation of [http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/fnmatch.cpp rw_fnmatch](), so that is done. + The first thing that we needed was to write the function for doing Basic Regular Expression name matching and add it to the test suite.. Martin has already added an implementation of [http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/fnmatch.cpp rw_fnmatch](), so that is done. `rw_fnmatch()` is a simplified implementation of the POSIX [http://www.opengroup.org/onlinepubs/009695399/functions/fnmatch.html fnmatch] function which supports a simplified and modified form of BRE used in filename globbing. This is sufficient for what we need in term of regular expression support. The second thing that we needed was a function to do brace expansion. After much discussion, it was decided that the csh brace expansion rules made the most sense. Travis provided an implementation of two functions for doing brace expansion. The function [http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/braceexp.cpp rw_brace_expand]() does a simple brace expansion on the input string. There is no special treatment for whitespace, but escapes are properly handled. The function [http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/braceexp.cpp rw_shell_expand]() does whitespace tokenization and collapse, and then does brace expansion on each token, much like the behavior you would see from the csh shell.