Pārlūkot izejas kodu

When searching for an opening tag, verify that the character

after the tag is whitespace, '/' or '>'.  This allows the
ConfigurationElement to differentiate between <elem> and <elem1>.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@73 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz pirms 9 gadiem
vecāks
revīzija
aae5c9ea10
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5
    0
      configuration.cpp

+ 5
- 0
configuration.cpp Parādīt failu

@@ -718,6 +718,11 @@ bool ConfigurationElement::interpret(ConfigurationData& Data) {
return false; // No-Match means we are not it.
}
} // If the name checks out then
if (!isspace(Data.Data(Index + myName.length())) && // Next character must be whitespace
(Data.Data(Index + myName.length()) != '/') && // or closing of the tag.
(Data.Data(Index + myName.length()) != '>') ) {
return false;
}
Index += myName.length(); // move the Index past our name.

// At this point we have found ourselves so we will activate and interpret

Notiek ielāde…
Atcelt
Saglabāt