Boost logo

Boost Users :

Subject: [Boost-users] program_options: Is there a way to parse an ODBC connect string?
From: Eric J. Holtman (eric_at_[hidden])
Date: 2009-11-16 13:30:33


I'd like to parse an ODBC connect string (or other
similarly constructed strings) using program_options.

So, I have something like:

Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated
Security=SSPI;

now, I could implement the function that converts this to
something I can use, like

--Data_Source myServerAddress --Initial_Catalog myDataBase
--Integrated_Security SSPI

but I was wondering since there's already a split_winmain function,
is there a function that already does this, before I roll my own?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net