123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef _BOOST_DATE_TIME_FIND_MATCH_HPP___
- #define _BOOST_DATE_TIME_FIND_MATCH_HPP___
- #include <string>
- namespace boost {
- namespace date_time {
-
-
- template<class charT>
- short find_match(const charT* const* short_names,
- const charT* const* long_names,
- short size,
- const std::basic_string<charT>& s) {
- for(short i = 0; i < size; ++i){
- if(short_names[i] == s || long_names[i] == s){
- return i;
- }
- }
- return size;
- }
- } }
- #endif
|