Home
last modified time | relevance | path

Searched refs:lua_tonumber (Results 1 – 12 of 12) sorted by relevance

/external/libtextclassifier/actions/
Dlua-utils.cc133 static_cast<int>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadSpan()
136 static_cast<int>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadSpan()
139 static_cast<int>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadSpan()
206 static_cast<float>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadClassificationResult()
209 static_cast<int64>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadClassificationResult()
213 lua_tonumber(env->state(), /*idx=*/-1)); in ReadClassificationResult()
288 action.score = static_cast<float>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadAction()
291 static_cast<float>(lua_tonumber(env->state(), /*idx=*/-1)); in ReadAction()
/external/libtextclassifier/utils/
Dlua-utils.cc189 buffer->Set(field, static_cast<int>(lua_tonumber(state_, /*idx=*/-1))); in ReadFlatbuffer()
193 static_cast<int64>(lua_tonumber(state_, /*idx=*/-1))); in ReadFlatbuffer()
197 static_cast<float>(lua_tonumber(state_, /*idx=*/-1))); in ReadFlatbuffer()
201 static_cast<double>(lua_tonumber(state_, /*idx=*/-1))); in ReadFlatbuffer()
Dregex-match.cc100 const int group_id = static_cast<int>(lua_tonumber(state_, /*idx=*/-1)); in GetCapturingGroup()
Dlua-utils.h150 static_cast<int64>(lua_tonumber(state, /*idx=*/-1)) - 1; in Item()
/external/libtextclassifier/utils/intents/
Dintent-generator.cc452 resource_id = static_cast<int>(lua_tonumber(state_, /*idx=*/-1)); in HandleAndroidStringResources()
620 value = Variant(static_cast<int>(lua_tonumber(state_, /*idx=*/-1))); in ReadExtras()
622 value = Variant(static_cast<int64>(lua_tonumber(state_, /*idx=*/-1))); in ReadExtras()
624 value = Variant(static_cast<float>(lua_tonumber(state_, /*idx=*/-1))); in ReadExtras()
/external/lua/src/
Dltablib.c69 lua_Number v = lua_tonumber(L, -1); in maxn()
Dlua.h341 #define lua_tonumber(L,i) lua_tonumberx(L,(i),NULL) macro
Dliolib.c630 (LUAI_UACNUMBER)lua_tonumber(L, arg)); in g_write()
Dlauxlib.c821 lua_pushfstring(L, "%f", (LUAI_UACNUMBER)lua_tonumber(L, idx)); in luaL_tolstring()
Dlstrlib.c955 lua_Number n = lua_tonumber(L, arg); /* write as hexa ('%a') */ in addliteral()
/external/skqp/src/utils/
DSkLua.cpp195 return (int)lua_tonumber(L, index); in lua2int_def()
203 return SkLuaToScalar(lua_tonumber(L, index)); in lua2scalar()
208 return SkLuaToScalar(lua_tonumber(L, index)); in lua2scalar_def()
/external/skia/src/utils/
DSkLua.cpp195 return (int)lua_tonumber(L, index); in lua2int_def()
203 return SkLuaToScalar(lua_tonumber(L, index)); in lua2scalar()
208 return SkLuaToScalar(lua_tonumber(L, index)); in lua2scalar_def()