Ticket #2521: patch
File patch, 1.3 KB (added by , 14 years ago) |
---|
-
boost/date_time/date_parsing.hpp
old new 78 78 * arrays is from 0 to 'limit'. The index of the match is returned. 79 79 * Ex. "Jan" returns 0, "Dec" returns 11, "Tue" returns 2. 80 80 * 'limit' can be sent in with: greg_month::max(), 81 * greg_weekday::max() or date_time::NumSpecialValues*/81 * greg_weekday::max() or (date_time::NumSpecialValues - 1) */ 82 82 template<class charT> 83 83 short find_match(const charT* const* short_names, 84 84 const charT* const* long_names, -
libs/date_time/src/gregorian/greg_month.cpp
old new 73 73 special_values special_value_from_string(const std::string& s) { 74 74 short i = date_time::find_match(special_value_names, 75 75 special_value_names, 76 date_time::NumSpecialValues ,76 date_time::NumSpecialValues - 1, 77 77 s); 78 if(i > date_time::NumSpecialValues ) { // match not found78 if(i > date_time::NumSpecialValues - 1) { // match not found 79 79 return not_special; 80 80 } 81 81 else {