Changeset 50:738ccd9abeae in rrlib_util


Ignore:
Timestamp:
21.02.2012 17:18:46 (8 years ago)
Author:
Bernd-Helge Schaefer <schaefer@…>
Branch:
default
Phase:
public
Message:

added helper method BuildStringListFromCharArrays which supports the new format of enum_string_builder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sStringUtils.h

    r43 r50  
    312312  } 
    313313 
     314  static void BuildStringListFromCharArrays(std::vector <std::string>& name_list, const std::vector <const char*>& names) 
     315  { 
     316    name_list.clear(); 
     317    for (size_t i = 0; i < names.size(); i++) 
     318    { 
     319      assert(names [i] != NULL); 
     320      name_list.push_back(names [i]); 
     321    } 
     322  } 
     323 
    314324  /*! 
    315325   * \brief Returns true if string equals "true" or "1". 
Note: See TracChangeset for help on using the changeset viewer.