Ignore:
Timestamp:
08/24/11 09:05:34 (13 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src4/xmlio/main_server.cpp

    r256 r258  
    3030//~ using namespace xios::func; 
    3131 
     32#include <boost/xpressive/xpressive.hpp> 
     33 
    3234// Point d'entrée du programme serveur principal. 
    3335int main (int argc, char ** argv, char ** XIOS_UNUSED (env)) 
     
    3739      CMPIManager::Initialise(&argc, &argv); 
    3840      { 
     41          std::string hello( "1d 12mo 13mi" ); 
    3942 
     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          } 
    4053      } 
    4154      CMPIManager::Finalize(); 
Note: See TracChangeset for help on using the changeset viewer.