Ray Speth
0787e4194e
[Base] Fix parsing composition strings when last name contains a colon
...
If the last species name in a composition string contained a colon, it would not
be parsed correctly.
2016-11-27 17:41:37 -05:00
Ray Speth
8e6d53d18b
Enable parsing of composition strings when species names contain colons
2016-11-25 18:19:38 -05:00
Ray Speth
388dbafb39
Deprecate wrapString
2016-10-28 18:38:23 -04:00
Ray Speth
7a24dc3817
Replace lowercase with boost string algorithms
2016-10-28 18:20:11 -04:00
Ray Speth
b25784dc09
Replace stripws with boost::algorithm::trim_copy
2016-10-27 11:28:03 -04:00
Ray Speth
367bdba551
Use boost::algorithm::split to implement tokenizeString
2016-10-27 11:28:03 -04:00
Ray Speth
8a9eabeeac
[clib] Add buffer length argument to all functions returning strings
...
If the buffer is not long enough, the string is truncated and the return value
is the required buffer length. Otherwise, the return value is 0.
2016-10-18 11:21:42 -04:00
Ray Speth
ecbfecd7fd
Replace existing copyright notices with uniform copyright/license info
2016-10-10 22:19:01 -04:00
Ray Speth
e13faa1071
[Base] Fix vec2str to actually use provided format string
2016-04-30 16:47:55 -04:00
Ray Speth
336271c395
[Doc] Clean up redundant "@return returns ..."
2016-04-18 14:58:15 -04:00
Ray Speth
f44b5fed57
Replace usage of int2str with cppformat and deprecate int2str
2016-02-04 19:11:49 -05:00
Ray Speth
f91afda8cb
Replace usage of fp2str with cppformat and deprecate fp2str
2016-02-04 19:11:45 -05:00
Ray Speth
4c58f11dd8
Improve use of local variables in src/base
2016-02-04 14:45:36 -05:00
Ray Speth
2589a27b6c
Use range-based for and auto to simplify some loops
2015-10-14 18:45:23 -04:00
Ray Speth
b38a9332e2
Treat duplicate keys in composition strings as errors
...
For example, 'H2:0.5, O2:0.5, H2:0.1', which would previously have been treated
as equivalent to 'O2:0.5, H2:0.1'.
2015-10-05 13:02:16 -04:00
Ray Speth
acdf9cf0ed
Clean up interstitial whitespace
...
Remove extra space around operators, between words, etc.
2015-08-02 23:06:16 -04:00
Ray Speth
6a04193646
Fix un-bracketed if, for, and else statements
2015-08-02 23:06:15 -04:00
Ray Speth
a6e390dfc5
Standardize always-true while loop condition to "true"
2015-08-02 23:06:15 -04:00
Ray Speth
f1f10b6526
Remove unused, deprecated code marked for removal after Cantera 2.2
2015-07-15 12:08:50 -04:00
Ray Speth
efb80dfe05
Remove unnecessary delimiter lines between functions
...
A single line of white space is sufficient and consistent. Also moved a couple
Doxygen strings out of source files.
2015-01-22 00:04:24 +00:00
Ray Speth
8b8a95a2ff
Deprecate unused stringUtils functions
2014-11-07 02:14:57 +00:00
Ray Speth
07f8d520ee
Improved implementation of parseCompString
...
Improvements:
- Tolerate formatting irregularities such as spaces befpre or after the colon
(e.g. 'H2: 1.0')
- Allow names containing commas and semicolons
- Detect errors such as no value being supplied for the last element (e.g. 'H2')
- Single implementation handles both the case where a list of valid names is
supplied and when any name is allowed
2014-11-07 02:14:52 +00:00
Ray Speth
26b6f190f3
Introduce class Species
2014-10-17 23:44:31 +00:00
Ray Speth
002c158761
Cleanup include statements
...
Move includes from header to implementation files where possible, and remove
unnecessary includes.
2014-08-28 16:54:13 +00:00
Ray Speth
a470502932
[Transport] Replace transport_log.xml with regular text logging
...
Write plain text to the common Cantera logger to be more consistent with the
verbose/debug logging from other parts of Cantera. This simplifies several of
the transport initialization functions, and eliminates the need for class
XML_Writer.
2014-06-20 18:44:59 +00:00
Ray Speth
e778afad32
Remove deprecated functions
2014-06-20 18:44:33 +00:00
Ray Speth
789574ac80
Remove commented-out code
2014-05-27 02:52:21 +00:00
Ray Speth
beeaa21644
Deprecate unused stringUtils functions
2014-04-02 15:26:42 +00:00
Ray Speth
43546f870f
fpValueCheck detects (invalid) decimal ponts in exponents
2014-04-02 15:26:31 +00:00
Ray Speth
4a6dd84f81
[Thermo] Check composition strings for invalid float literals
2014-04-02 15:26:20 +00:00
Ray Speth
d516d46f33
Remove unnecessary use of static_cast<int>
2014-01-31 23:15:09 +00:00
Harry Moffat
cfa4493b51
Worked on fixing errors in the code that caused problems with downstream code.
...
Took out single_species compilation option
took out some deprecated warnings
Fixed an error in copy constructors for thermo.
Still an error with PYTHONPATH and the test suite
-- more to come.
2013-09-02 00:58:28 +00:00
Ray Speth
8757836d64
Deprecate stripLTWScstring
2013-06-05 17:09:54 +00:00
Ray Speth
d253fc0d63
Eliminate redundant standard library includes
2013-06-05 17:08:13 +00:00
Ray Speth
ee74c80afc
Fixed a number of "shadowed variable" compiler warnings
2013-04-18 22:08:36 +00:00
Ray Speth
910b75fc26
Combined overloaded definitions of fp2str and int2str
2013-04-12 23:07:23 +00:00
Ray Speth
5967e952e6
Cleaned up Doxygen docs for functions declared in stringUtils.h
2013-04-12 23:07:15 +00:00
Ray Speth
50617105b5
Removed inaccurately-named atofCheck in favor of fpValueCheck
2013-04-03 23:10:35 +00:00
Ray Speth
7b7d3ac0d4
Fixed locale-dependent processing of XML files
...
Floating point values are read using a std::stringstream imbued with the "C"
locale to avoid problems with using std::atof when the user's locale uses a
character other than "." as the decimal separator.
Patch provided by Phillip Berndt.
Fixes Issue 153.
2013-04-03 23:10:18 +00:00
Ray Speth
e04e59cdd3
Removed extraneous parentheses around arguments to 'return'
...
'return' is a keyword, not a function, so these parens are unnecessary.
2013-02-14 01:03:48 +00:00
Ray Speth
1d19803885
Pass "const std::string&" instead of "std::string" when possible
2012-10-24 15:42:51 +00:00
Ray Speth
49dbb605ab
Changed parseCompString to simplify its typical usage pattern
2012-08-17 16:44:34 +00:00
Ray Speth
6a78bea039
Added copyString as a consistent interface for copying std::string to char*
2012-08-02 15:48:27 +00:00
Ray Speth
3bff32dd55
Fixed problems that generated warnings with the Intel compiler
2012-03-07 00:51:13 +00:00
Ray Speth
e8b04fb2b4
Fixed numerous compiler warnings from MSVC
2012-02-17 20:29:10 +00:00
Ray Speth
a310345b9e
Updated #includes to reflect new header file locations
2012-02-12 02:44:14 +00:00
Ray Speth
2528df0f75
Reorganized source tree structure
...
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.
All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00