Commit f0460434 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

setpartab: added support for values in single quotes [Bug #7662].

parent 33cf81a9
2017-04-14 Uwe Schulzweida
2017-04-06 Uwe Schulzweida
* Using CDI library version 1.8.1
* Version 1.8.1 release
2017-04-07 Uwe Schulzweida
* setpartab: added support for values in single quotes [Bug #7662]
2017-04-03 Uwe Schulzweida
* Arith: set varID2 to varID (bug fix for variables with different grid size)
......
CDO NEWS
--------
Version 1.8.1 (24 March 2017):
Version 1.8.1 (6 April 2017):
New features:
* selindexbox: added support for LCC grid
New operators:
* selgridcell - Select grid cells
* delgridcell - Delete grid cells
* selmulti - Select multiple fields (KMNI extension)
* delmulti - Delete multiple fields (KMNI extension)
* changemulti - Change identication of multiple fields (KMNI extension)
* samplegrid - Resample grid (KMNI extension)
New operators (KMNI contribution):
* selmulti - Select multiple fields
* delmulti - Delete multiple fields
* changemulti - Change identication of multiple fields
* samplegrid - Resample grid
* uvDestag - Destaggering of wind components
* rotuvNorth - Rotate u/v wind to North pole
* projuvLatLon - Cylindrical Equidistant projection
......
......@@ -110,7 +110,7 @@ int namelist_parse_word(namelist_parser *parser, const char *buf, size_t len)
// Fills next token with NAMELIST string.
static
int namelist_parse_string(namelist_parser *parser, const char *buf, size_t len)
int namelist_parse_string(namelist_parser *parser, const char *buf, size_t len, char quote)
{
int start = parser->pos;
......@@ -122,7 +122,7 @@ int namelist_parse_string(namelist_parser *parser, const char *buf, size_t len)
char c = buf[parser->pos];
/* Quote: end of string */
if ( c == '\"' )
if ( c == quote )
{
namelisttok_t *token = namelist_alloc_token(parser);
namelist_fill_token(token, NAMELIST_STRING, start+1, parser->pos);
......@@ -238,8 +238,8 @@ int namelist_parse(namelist_parser *parser, const char *buf, size_t len)
case ':': case '=':
status = namelist_check_keyname(buf, &parser->tokens[parser->toknext-1]);
break;
case '\"':
status = namelist_parse_string(parser, buf, len);
case '\"': case '\'':
status = namelist_parse_string(parser, buf, len, c);
break;
default:
status = namelist_parse_word(parser, buf, len);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment