Changeset 258 for XMLIO_V2/dev/dev_rv/src4/xmlio/main_server.cpp
- Timestamp:
- 08/24/11 09:05:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src4/xmlio/main_server.cpp
r256 r258 30 30 //~ using namespace xios::func; 31 31 32 #include <boost/xpressive/xpressive.hpp> 33 32 34 // Point d'entrée du programme serveur principal. 33 35 int main (int argc, char ** argv, char ** XIOS_UNUSED (env)) … … 37 39 CMPIManager::Initialise(&argc, &argv); 38 40 { 41 std::string hello( "1d 12mo 13mi" ); 39 42 43 boost::xpressive::sregex rex = boost::xpressive::sregex::compile( "(\\d+)([ymodhis]+)" ); 44 45 boost::xpressive::sregex_iterator cur( hello.begin(), hello.end(), rex ); 46 boost::xpressive::sregex_iterator end; 47 48 for( ; cur != end; ++cur ) 49 { 50 boost::xpressive::smatch const &what = *cur; 51 std::cout << what[0] << '\n'; 52 } 40 53 } 41 54 CMPIManager::Finalize();
Note: See TracChangeset
for help on using the changeset viewer.