bool Tokenizer::ReadUntil(Token const& aToken, nsDependentCSubstring& aResult, ClaimInclusion aInclude) { Record(); nsACString::const_char_iterator rollback = mCursor; bool found = false; Token t; while (Next(t)) { if (aToken.Equals(t)) { found = true; break; } } Claim(aResult, aInclude); mRollback = rollback; return found; }
// // SyncEnabled // // Sync with enabled state by claiming or releasing driver // void SyncEnabled() { if (initialized) { if (enabled) { if (!Claimed()) { Claim(); } } else { if (Claimed()) { Release(); } } } }