diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
| commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
| tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/tafreader.cpp | |
| parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
| parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
| download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip | |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/tafreader.cpp')
| -rw-r--r-- | src/tafreader.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tafreader.cpp b/src/tafreader.cpp index ca06daf..6708c8c 100644 --- a/src/tafreader.cpp +++ b/src/tafreader.cpp | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
| 3 | * | 3 | * |
| 4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
| 5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #include "bu/taf.h" | 8 | #include "bu/taf.h" |
| 9 | #include "bu/fstring.h" | 9 | #include "bu/string.h" |
| 10 | #include "bu/stream.h" | 10 | #include "bu/stream.h" |
| 11 | 11 | ||
| 12 | #include <stdlib.h> | 12 | #include <stdlib.h> |
| @@ -34,7 +34,7 @@ Bu::TafGroup *Bu::TafReader::readGroup() | |||
| 34 | throw TafException("%d:%d: Expected '{' got '%c'.", iLine, iCol, c ); | 34 | throw TafException("%d:%d: Expected '{' got '%c'.", iLine, iCol, c ); |
| 35 | next(); | 35 | next(); |
| 36 | ws(); | 36 | ws(); |
| 37 | FString sName = readStr(); | 37 | String sName = readStr(); |
| 38 | TafGroup *pGroup = new TafGroup( sName ); | 38 | TafGroup *pGroup = new TafGroup( sName ); |
| 39 | try | 39 | try |
| 40 | { | 40 | { |
| @@ -88,7 +88,7 @@ void Bu::TafReader::groupContent( Bu::TafGroup *pGroup ) | |||
| 88 | 88 | ||
| 89 | Bu::TafProperty *Bu::TafReader::readProperty() | 89 | Bu::TafProperty *Bu::TafReader::readProperty() |
| 90 | { | 90 | { |
| 91 | FString sName = readStr(); | 91 | String sName = readStr(); |
| 92 | ws(); | 92 | ws(); |
| 93 | if( c != '=' ) | 93 | if( c != '=' ) |
| 94 | { | 94 | { |
| @@ -96,14 +96,14 @@ Bu::TafProperty *Bu::TafReader::readProperty() | |||
| 96 | return new Bu::TafProperty( "", sName ); | 96 | return new Bu::TafProperty( "", sName ); |
| 97 | } | 97 | } |
| 98 | next(); | 98 | next(); |
| 99 | FString sValue = readStr(); | 99 | String sValue = readStr(); |
| 100 | return new Bu::TafProperty( sName, sValue ); | 100 | return new Bu::TafProperty( sName, sValue ); |
| 101 | //printf(" %s = %s\n", sName.getStr(), sValue.getStr() ); | 101 | //printf(" %s = %s\n", sName.getStr(), sValue.getStr() ); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | Bu::TafComment *Bu::TafReader::readComment( bool bEOL ) | 104 | Bu::TafComment *Bu::TafReader::readComment( bool bEOL ) |
| 105 | { | 105 | { |
| 106 | FString sCmnt; | 106 | String sCmnt; |
| 107 | next(); | 107 | next(); |
| 108 | if( bEOL ) | 108 | if( bEOL ) |
| 109 | { | 109 | { |
| @@ -140,10 +140,10 @@ Bu::TafComment *Bu::TafReader::readComment( bool bEOL ) | |||
| 140 | return new TafComment( sCmnt, bEOL ); | 140 | return new TafComment( sCmnt, bEOL ); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | Bu::FString Bu::TafReader::readStr() | 143 | Bu::String Bu::TafReader::readStr() |
| 144 | { | 144 | { |
| 145 | ws(); | 145 | ws(); |
| 146 | FString s; | 146 | String s; |
| 147 | if( c == '"' ) | 147 | if( c == '"' ) |
| 148 | { | 148 | { |
| 149 | next(); | 149 | next(); |
