COIN-OR::LEMON - Graph Library

Changeset 2426:6e1027a05d73 in lemon-0.x for lemon/bits/item_reader.h


Ignore:
Timestamp:
04/19/07 17:14:34 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3262
Message:

Allowing 'string' type quoting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/item_reader.h

    r2391 r2426  
    3131#include <list>
    3232#include <set>
     33#include <map>
     34
     35#include <lemon/error.h>
    3336
    3437namespace lemon {
     
    173176      value.clear();
    174177      is >> std::ws;
    175       if (!is.get(c) || c != '\"')
     178      if (!is.get(c) || (c != '\"' && c != '\''))
    176179        throw DataFormatError("Quoted format error");
    177       while (is.get(c) && c != '\"') {
     180      char quote = c;
     181      while (is.get(c) && c != quote) {
    178182        if (escaped && c == '\\') {
    179183          value += readEscape(is);
Note: See TracChangeset for help on using the changeset viewer.