MCPcopy Create free account
hub / github.com/MariaDB/server / GetIntValue

Method GetIntValue

storage/connect/value.cpp:1311–1317  ·  view source on GitHub ↗

/ Get the integer value represented by the Strp string. */ /

Source from the content-addressed store, hash-verified

1309/* Get the integer value represented by the Strp string. */
1310/***********************************************************************/
1311int TYPVAL<PSZ>::GetIntValue(void)
1312{
1313 bool m;
1314 ulonglong val = CharToNumber(Strp, strlen(Strp), INT_MAX32, false, &m);
1315
1316 return (m && val < INT_MAX32) ? (int)(-(signed)val) : (int)val;
1317} // end of GetIntValue
1318
1319/***********************************************************************/
1320/* Get the unsigned integer value represented by the Strp string. */

Callers 15

AddValueMethod · 0.45
WriteColumnMethod · 0.45
AllocateValueFunction · 0.45
GetTypedValueMethod · 0.45
SetValue_pvblkMethod · 0.45
GetResultSizeMethod · 0.45
SetParamMethod · 0.45
TestFilterMethod · 0.45
ConvertMethod · 0.45
EvalMethod · 0.45
PrintfMethod · 0.45
MyODBCColsFunction · 0.45

Calls 2

CharToNumberFunction · 0.85
GetShortValueFunction · 0.85

Tested by 1

TestFilterMethod · 0.36