MCPcopy Create free account

hub / github.com/antirez/botlib / functions

Functions207 in github.com/antirez/botlib

↓ 1 callersFunctionkvSetLen
Set the key to the specified value and expire time. An expire of zero * means the key should not be expired at all. Return 1 on success, or * 0 on e
sqlite_wrap.c:242
↓ 1 callersFunctionmakeHTTPGETCall
Request the specified URL in a blocking way, returns the content (or * error string) as an SDS string. If 'resptr' is not NULL, the integer * will b
botlib.c:260
↓ 1 callersFunctionmakeHTTPGETCallOpt
Like makeHTTPGETCall(), but the list of options will be concatenated to * the URL as a query string, and URL encoded as needed. * The option list ar
botlib.c:301
↓ 1 callersFunctionminify_string
cJSON.c:2807
↓ 1 callersFunctionparse_array
Build an array from input text. */
cJSON.c:1437
↓ 1 callersFunctionparse_number
Parse the input text to generate a number, and populate the result into item. */
cJSON.c:305
↓ 1 callersFunctionparse_object
Build an object from the text. */
cJSON.c:1597
↓ 1 callersFunctionprint_array
Render an array to text */
cJSON.c:1535
↓ 1 callersFunctionprint_number
Render the number nicely from the given item into a string. */
cJSON.c:545
↓ 1 callersFunctionprint_object
Render an object to text. */
cJSON.c:1710
↓ 1 callersFunctionprint_string
Invoke print_string_ptr (which is useful) on an item. */
cJSON.c:1020
↓ 1 callersFunctionreadApiKeyFromFile
Check if a file named 'apikey.txt' exists, if so load the Telegram bot * API key from there. If the function is able to read the API key from * the
botlib.c:862
↓ 1 callersFunctionresetBotStats
botlib.c:877
↓ 1 callersFunctionsdsIncrLen
Increment the sds length and decrements the left free space at the * end of the string according to 'incr'. Also set the null term * in the new end
sds.c:333
↓ 1 callersFunctionsdsTest
sds.c:1132
↓ 1 callersFunctionsdscatrepr
Append to the sds string "s" an escaped string representation where * all the non-printable characters (tested with isprint()) are turned into * esc
sds.c:884
↓ 1 callersFunctionsdscatsds
Append the specified sds 't' to the existing sds 's'. * * After the call, the modified sds string is no longer valid and all the * references must
sds.c:420
↓ 1 callersFunctionsdscatvprintf
Like sdscatprintf() but gets va_list instead of being variadic. */
sds.c:522
↓ 1 callersFunctionsdscpylen
Destructively modify the sds string 's' to hold the specified binary * safe string pointed by 't' of length 'len' bytes. */
sds.c:426
↓ 1 callersFunctionsdsfreesplitres
Free the result returned by sdssplitlen(), or do nothing if 'tokens' is NULL. */
sds.c:871
↓ 1 callersFunctionsdssplitargs
Split a line into arguments, where every argument can be in the * following programming-language REPL-alike form: * * foo bar "newline are supporte
sds.c:959
↓ 1 callersFunctionsdsull2str
Identical sdsll2str(), but for unsigned long long type. */
sds.c:482
↓ 1 callersFunctionskip_multiline_comment
cJSON.c:2793
↓ 1 callersFunctionskip_oneline_comment
cJSON.c:2780
↓ 1 callersFunctionskip_utf8_bom
skip the UTF-8 BOM (byte order mark) if it is at the beginning of a buffer */
cJSON.c:1060
↓ 1 callersFunctionsqlInsert
Wrapper for sqlGenericQuery() returning the last inserted ID or 0 * on error. */
sqlite_wrap.c:171
↓ 1 callersFunctionsqlSelect
Wrapper for sqlGenericQuery() using varialbe number of args. * This is what you want when doing SELECT queries. */
sqlite_wrap.c:196
↓ 1 callersFunctionstartBot
botlib.c:882
↓ 1 callersFunctionstrmatch
Glob-style pattern matching. Return 1 on match, 0 otherwise. */
botlib.c:86
↓ 1 callersFunctionutf16_literal_to_utf8
converts a UTF-16 literal to UTF-8 * A literal can be one or two sequences of the form \uXXXX */
cJSON.c:648
↓ 1 callersFunctionxmalloc
botlib.c:210
↓ 1 callersFunctionxrealloc
botlib.c:219
FunctionbotHandleRequest
Request handling thread entry point. */
botlib.c:637
FunctionbotSendImage
Send an image using the sendPhoto endpoint. Return 1 on success, 0 * on error. */
botlib.c:337
FunctioncJSON_AddArrayToObject
cJSON.c:2171
FunctioncJSON_AddBoolToObject
cJSON.c:2111
FunctioncJSON_AddFalseToObject
cJSON.c:2099
FunctioncJSON_AddItemReferenceToObject
cJSON.c:2065
FunctioncJSON_AddItemToObject
cJSON.c:2044
FunctioncJSON_AddItemToObjectCS
Add an item to an object with constant string as key */
cJSON.c:2050
FunctioncJSON_AddNullToObject
cJSON.c:2075
FunctioncJSON_AddNumberToObject
cJSON.c:2123
FunctioncJSON_AddObjectToObject
cJSON.c:2159
FunctioncJSON_AddRawToObject
cJSON.c:2147
FunctioncJSON_AddStringToObject
cJSON.c:2135
FunctioncJSON_AddTrueToObject
cJSON.c:2087
FunctioncJSON_Compare
cJSON.c:2977
FunctioncJSON_CreateArrayReference
cJSON.c:2486
FunctioncJSON_CreateDoubleArray
cJSON.c:2616
FunctioncJSON_CreateFloatArray
cJSON.c:2576
FunctioncJSON_CreateIntArray
Create Arrays: */
cJSON.c:2536
FunctioncJSON_CreateObjectReference
cJSON.c:2475
FunctioncJSON_CreateStringArray
cJSON.c:2656
FunctioncJSON_CreateStringReference
cJSON.c:2463
FunctioncJSON_DeleteItemFromArray
cJSON.c:2229
FunctioncJSON_DeleteItemFromObject
cJSON.c:2248
FunctioncJSON_DeleteItemFromObjectCaseSensitive
cJSON.c:2253
FunctioncJSON_Duplicate
Duplication */
cJSON.c:2697
FunctioncJSON_GetArraySize
Get Array size/item / object item. */
cJSON.c:1824
FunctioncJSON_GetErrorPtr
cJSON.c:94
FunctioncJSON_GetNumberValue
cJSON.c:109
FunctioncJSON_GetStringValue
cJSON.c:99
FunctioncJSON_HasObjectItem
cJSON.c:1918
FunctioncJSON_InsertItemInArray
Replace array/object items with new ones. */
cJSON.c:2259
FunctioncJSON_IsFalse
cJSON.c:2887
FunctioncJSON_IsRaw
cJSON.c:2967
FunctioncJSON_IsTrue
cJSON.c:2897
FunctioncJSON_Minify
cJSON.c:2829
FunctioncJSON_ParseWithLength
cJSON.c:1176
FunctioncJSON_Print
Render a cJSON item/entity/structure to text. */
cJSON.c:1248
FunctioncJSON_PrintBuffered
cJSON.c:1258
FunctioncJSON_PrintPreallocated
cJSON.c:1288
FunctioncJSON_PrintUnformatted
cJSON.c:1253
FunctioncJSON_ReplaceItemInArray
cJSON.c:2337
FunctioncJSON_ReplaceItemInObject
cJSON.c:2365
FunctioncJSON_ReplaceItemInObjectCaseSensitive
cJSON.c:2370
FunctioncJSON_SetNumberHelper
don't ask me, but the original cJSON_SetNumberValue returns an integer or double */
cJSON.c:382
FunctioncJSON_SetValuestring
cJSON.c:400
FunctioncJSON_Version
cJSON.c:124
FunctioncJSON_malloc
cJSON.c:3102
Functioncron
This is just called every 1 or 2 seconds. */
mybot.c:80
FunctionhandleRequest
For each bot command, private message or group message (but this only works * if the bot is set as group admin), this function is called in a new thr
mybot.c:21
Functioninternal_free
cJSON.c:169
Functioninternal_malloc
work around MSVC error C2322: '...' address of dllimport '...' is not static */
cJSON.c:165
Functioninternal_realloc
cJSON.c:173
FunctionkvDel
Delete the key if it exists. */
sqlite_wrap.c:280
Functionmain
mybot.c:85
Functionmain
sds.c:1297
FunctionmakeHTTPGETCallWriterFILE
The callback writing the CURL reply to a file. */
botlib.c:247
FunctionmakeHTTPGETCallWriterSDS
The callback concatenating data arriving from CURL http requests into * a target SDS string. */
botlib.c:238
FunctionsdsAllocPtr
Return the pointer of the actual SDS allocation (normally SDS strings * are referenced by the start of the string buffer). */
sds.c:306
FunctionsdsAllocSize
Return the total size of the allocation of the specified sds string, * including: * 1) The sds header before the pointer. * 2) The string. * 3) Th
sds.c:299
FunctionsdsRemoveFreeSpace
Reallocate the sds string so that it has no free space at the end. The * contained string remains not altered, but next concatenation operations * w
sds.c:255
Functionsds_free
sds.c:1124
Functionsds_malloc
Wrappers to the allocators used by SDS. Note that SDS will actually * just use the macros defined into sdsalloc.h in order to avoid to pay * the ove
sds.c:1122
Functionsds_realloc
sds.c:1123
Functionsdsclear
Modify an sds string in-place to make it empty (zero length). * However all the existing buffer is not discarded but set as free space * so that nex
sds.c:193
Functionsdsgrowzero
Grow the sds to have the specified length. Bytes that were not part of * the original length of the sds will be set to zero. * * if the specified l
sds.c:379
Functionsdsjoin
Join an array of C strings using the specified separator (also a C string). * Returns the result as an sds string. */
sds.c:1094
Functionsdsjoinsds
Like sdsjoin, but joins an array of SDS strings. */
sds.c:1106
← previousnext →101–200 of 207, ranked by callers