EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [Fwd: RE: Standard String]
From: Kay-Uwe Kasemir <[email protected]>
To: EPICS Core Talk <[email protected]>
Date: Mon, 18 Jul 2005 12:21:11 -0400

On Jul 18, 2005, at 11:07, Jeff Hill wrote:
The c_str function does not allow an
implementation that is stored in non-contiguous fixed sized blocks (or else
c_str calls malloc, or else c_str isn't thread safe, ...).

I agree that's less than ideal,
but I still don't see a way around contiguous char * strings,
because that's what most 'legacy' libraries want.

You can add that as a layer around the next EPICS String class
and copy char by char from the non-contig. String into a char *,
but std::string and MFC::CString instead bite the bullet
and provide a c_str() type of method.

-Kay


Replies:
RE: [Fwd: RE: Standard String] Jeff Hill
Re: [Fwd: RE: Standard String] Andrew Johnson
References:
RE: [Fwd: RE: Standard String] Jeff Hill

Navigate by Date:
Prev: RE: [Fwd: RE: Standard String] Jeff Hill
Next: RE: [Fwd: RE: Standard String] Jeff Hill
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: [Fwd: RE: Standard String] Jeff Hill
Next: RE: [Fwd: RE: Standard String] Jeff Hill
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·