String fieldName = tokens[0];
int fid = type->GetFieldId(fieldName);
- Field field = type->GetFieldInfo(fid);
Value currentValue = GetField(fid);
Array::Ptr results = result->Get("results");
Value result;
- bool incompleteExpression = false;
String errorMessage = "Unexpected result from API.";
if (results && results->GetLength() > 0) {
REGISTER_URLHANDLER("/v1/console", ConsoleHandler);
-static int l_ExternalCommands = 0;
static boost::mutex l_QueryMutex;
static std::map<String, ApiScriptFrame> l_ApiScriptFrames;
static Timer::Ptr l_FrameCleanupTimer;
String::SizeType cperiod = word.RFind(".");
- if (cperiod != -1) {
+ if (cperiod != String::NPos) {
String pword = word.SubStr(0, cperiod);
Value value;