- return wd;
-}
-
-// scans all digits (but no more than len) and returns the resulting number
-bool GetNumericToken(size_t len,
- wxString::const_iterator& p,
- const wxString::const_iterator& end,
- unsigned long *number)
-{
- size_t n = 1;
- wxString s;
- while ( p != end && wxIsdigit(*p) )
- {
- s += *p++;
-
- if ( len && ++n > len )
- break;
- }
-
- return !s.empty() && s.ToULong(number);
-}
-
-// scans all alphabetic characters and returns the resulting string
-wxString
-GetAlphaToken(wxString::const_iterator& p,
- const wxString::const_iterator& end)
-{
- wxString s;
- while ( p != end && wxIsalpha(*p) )
- {
- s += *p++;
- }
-
- return s;
-}
-
-// scans all characters which can appear in a week day/month name
-//
-// this is different from GetAlphaToken() as some locales (e.g. fr_FR) use
-// trailing periods after the abbreviated week day/month names
-wxString
-GetNameToken(wxString::const_iterator& p,
- const wxString::const_iterator& end)
-{
- wxString token = GetAlphaToken(p, end);
- if ( p != end && *p == '.' )
- token += *p++;