MCPcopy Create free account

hub / github.com/antirez/botlib / functions

Functions207 in github.com/antirez/botlib

↓ 52 callersFunctionsdsfree
Free an sds string. No operation is performed if 's' is NULL. */
sds.c:165
↓ 39 callersFunctionsdslen
sds.h:87
↓ 31 callersFunctioncJSON_Delete
Delete a cJSON structure. */
cJSON.c:253
↓ 29 callersFunctioncJSON_Select
json_wrap.c:50
↓ 27 callersFunctionsdsnew
Create a new sds string starting from a null terminated C string. */
sds.c:154
↓ 23 callersFunctionsdscatlen
Append the specified binary-safe string pointed by 't' of 'len' bytes to the * end of the specified sds string 's'. * * After the call, the passed
sds.c:397
↓ 17 callersFunctioncJSON_New_Item
Internal constructor. */
cJSON.c:241
↓ 15 callersFunctionensure
realloc printbuffer if necessary to have at least "needed" bytes more */
cJSON.c:439
↓ 12 callersFunctionadd_item_to_object
cJSON.c:2007
↓ 10 callersFunctionbuffer_skip_whitespace
Utility to jump whitespace and cr/lf */
cJSON.c:1034
↓ 10 callersFunctionsdsnewlen
Create a new sds string with the content specified by the 'init' pointer * and 'initlen'. * If NULL is used for 'init' the string is initialized wit
sds.c:89
↓ 9 callersFunctionsdsMakeRoomFor
Enlarge the free space at the end of the sds string so that the caller * is sure that after calling this function can overwrite up to addlen * bytes
sds.c:204
↓ 9 callersFunctionsdsavail
sds.h:104
↓ 9 callersFunctionsdscat
Append the specified null termianted C string to the sds string 's'. * * After the call, the passed sds string is no longer valid and all the * ref
sds.c:412
↓ 9 callersFunctionsdssetlen
sds.h:130
↓ 8 callersFunctionsdsHdrSize
sds.c:44
↓ 8 callersFunctionsdsempty
Create an empty (zero length) sds string. Even in this case the string * always has an implicit null term. */
sds.c:149
↓ 7 callersFunctioncJSON_strdup
cJSON.c:188
↓ 7 callersFunctionsdsfromlonglong
Create an sds string from a long long value. It is much faster than: * * sdscatprintf(sdsempty(),"%lld\n", value); */
sds.c:514
↓ 6 callersFunctionsdsdup
Duplicate an sds string. */
sds.c:160
↓ 6 callersFunctionsdsrange
Turn the string into a smaller (or equal) string containing only the * substring specified by the 'start' and 'end' indexes. * * start and end can
sds.c:739
↓ 5 callersFunctioncJSON_CreateArray
cJSON.c:2513
↓ 5 callersFunctionget_object_item
cJSON.c:1876
↓ 5 callersFunctionmakeGETBotRequest
Make an HTTP request to the Telegram bot API, where 'req' is the specified * action name. This is a low level API that is used by other bot APIs * i
botlib.c:324
↓ 5 callersFunctionprint_value
Render a value to text. */
cJSON.c:1363
↓ 5 callersFunctionsdsinclen
sds.h:154
↓ 5 callersFunctionsqlGenericQuery
This is the low level function that we use to model all the higher level * functions. * * Queries can contain ?s ?b ?i and ?d special specifiers th
sqlite_wrap.c:39
↓ 5 callersFunctionsuffix_object
Utility for array list handling. */
cJSON.c:1924
↓ 4 callersFunctionadd_item_to_array
cJSON.c:1952
↓ 4 callersFunctioncJSON_CreateNumber
cJSON.c:2420
↓ 4 callersFunctioncJSON_Parse
Default options for cJSON_Parse */
cJSON.c:1171
↓ 4 callersFunctioncast_away_const
helper function to cast away const */
cJSON.c:1998
↓ 4 callersFunctionget_array_item
cJSON.c:1847
↓ 4 callersFunctionsdscatprintf
Append to the sds string 's' a string obtained using printf-alike format * specifier. * * After the call, the modified sds string is no longer vali
sds.c:575
↓ 4 callersFunctionsdstrim
Remove the part of the string from left and from right composed just of * contiguous characters found in 'cset', that is a null terminted C string.
sds.c:708
↓ 4 callersFunctionupdate_offset
calculate the new length of the string in a printbuffer and update the offset */
cJSON.c:525
↓ 3 callersFunctioncJSON_DetachItemViaPointer
cJSON.c:2183
↓ 3 callersFunctionparse_value
Parser core - when encountering text, process appropriately. */
cJSON.c:1308
↓ 3 callersFunctionsdsReqType
sds.c:60
↓ 3 callersFunctionsdscmp
Compare two sds strings s1 and s2 with memcmp(). * * Return value: * * positive if s1 > s2. * negative if s1 < s2. * 0 if s1 and s2
sds.c:792
↓ 3 callersFunctionsqlEnd
This function should be called only if you don't get all the rows * till the end. It is safe to call anyway. */
sqlite_wrap.c:121
↓ 3 callersFunctionsqlNextRow
After sqlGenericQuery() returns SQLITE_ROW, you can call this function * with the 'row' object pointer in order to get the rows composing the * resu
sqlite_wrap.c:134
↓ 3 callersFunctionsqlQuery
Wrapper for sqlGenericQuery() returning 1 if the query resulted in * SQLITE_DONE, otherwise zero. This is good for UPDATE and DELETE * statements. *
sqlite_wrap.c:184
↓ 2 callersFunctionbotSendMessage
Like botSendMessageWithInfo() but without returning by reference * the chat and message IDs that are only useful if you want to * edit the message l
botlib.c:461
↓ 2 callersFunctionbotSendMessageAndGetInfo
Send a message to the specified channel, optionally as a reply to a * specific message (if reply_to is non zero). * Return 1 on success, 0 on error.
botlib.c:420
↓ 2 callersFunctioncJSON_CreateString
cJSON.c:2446
↓ 2 callersFunctioncJSON_GetObjectItem
cJSON.c:1908
↓ 2 callersFunctioncJSON_GetObjectItemCaseSensitive
cJSON.c:1913
↓ 2 callersFunctioncJSON_InitHooks
cJSON.c:209
↓ 2 callersFunctioncJSON_IsArray
cJSON.c:2947
↓ 2 callersFunctioncJSON_IsNumber
cJSON.c:2927
↓ 2 callersFunctioncJSON_IsObject
cJSON.c:2957
↓ 2 callersFunctioncJSON_IsString
cJSON.c:2937
↓ 2 callersFunctioncJSON_ParseWithLengthOpts
Parse an object - create a new root, and populate. */
cJSON.c:1091
↓ 2 callersFunctioncJSON_ReplaceItemViaPointer
cJSON.c:2288
↓ 2 callersFunctioncJSON_free
cJSON.c:3107
↓ 2 callersFunctioncompare_double
securely comparison of floating-point variables */
cJSON.c:538
↓ 2 callersFunctioncreate_reference
Utility for handling references. */
cJSON.c:1931
↓ 2 callersFunctiondbInit
Create the SQLite tables if needed (if createdb is true), and return * the SQLite database handle. Return NULL on error. */
botlib.c:603
↓ 2 callersFunctionfreeBotRequest
Free the bot request and associated data. */
botlib.c:561
↓ 2 callersFunctionget_decimal_point
get the decimal point character of the current locale */
cJSON.c:277
↓ 2 callersFunctionhex_digit_to_int
Helper function for sdssplitargs() that converts a hex digit into an * integer from 0 to 15 */
sds.c:918
↓ 2 callersFunctionis_hex_digit
Helper function for sdssplitargs() that returns non zero if 'c' * is a valid hex digit. */
sds.c:911
↓ 2 callersFunctionparse_hex4
parse 4 digit hexadecimal number */
cJSON.c:611
↓ 2 callersFunctionparse_string
Parse the input text into an unescaped cinput, and populate item. */
cJSON.c:769
↓ 2 callersFunctionprint
cJSON.c:1183
↓ 2 callersFunctionprint_string_ptr
Render the cstring provided to an escaped version that can be printed. */
cJSON.c:898
↓ 2 callersFunctionreplace_item_in_object
cJSON.c:2347
↓ 2 callersFunctionsdsalloc
sdsalloc() = sdsavail() + sdslen() */
sds.h:180
↓ 2 callersFunctionsdscatfmt
This function is similar to sdscatprintf, but much faster as it does * not rely on sprintf() family functions implemented by the libc that * are oft
sds.c:600
↓ 2 callersFunctionsdscpy
Like sdscpylen() but 't' must be a null-termined string so that the length * of the string is obtained with strlen(). */
sds.c:439
↓ 2 callersFunctionsdsll2str
sds.c:450
↓ 2 callersFunctionsdssetalloc
sds.h:197
↓ 2 callersFunctionxfree
botlib.c:228
↓ 1 callersFunctionbotEditMessageText
Send a message to the specified channel, optionally as a reply to a * specific message (if reply_to is non zero). * Return 1 on success, 0 on error.
botlib.c:468
↓ 1 callersFunctionbotGetFile
This function should be called from the bot implementation callback. * If the bot request has a file (the user can see that by inspecting * the br->
botlib.c:499
↓ 1 callersFunctionbotGetUsername
Return the bot username. */
botlib.c:402
↓ 1 callersFunctionbotMain
This is the bot main loop: we get messages using getUpdates in blocking * mode, but with a timeout. Then we serve requests as needed, and every * ti
botlib.c:842
↓ 1 callersFunctionbotProcessUpdates
Get the updates from the Telegram API, process them, and return the * ID of the highest processed update. * * The offset is the last ID already pro
botlib.c:655
↓ 1 callersFunctioncJSON_AddItemReferenceToArray
cJSON.c:2055
↓ 1 callersFunctioncJSON_AddItemToArray
Add item to array/object. */
cJSON.c:1986
↓ 1 callersFunctioncJSON_CreateBool
cJSON.c:2409
↓ 1 callersFunctioncJSON_CreateFalse
cJSON.c:2398
↓ 1 callersFunctioncJSON_CreateNull
Create basic types: */
cJSON.c:2376
↓ 1 callersFunctioncJSON_CreateObject
cJSON.c:2524
↓ 1 callersFunctioncJSON_CreateRaw
cJSON.c:2496
↓ 1 callersFunctioncJSON_CreateTrue
cJSON.c:2387
↓ 1 callersFunctioncJSON_DetachItemFromArray
cJSON.c:2219
↓ 1 callersFunctioncJSON_DetachItemFromObject
cJSON.c:2234
↓ 1 callersFunctioncJSON_DetachItemFromObjectCaseSensitive
cJSON.c:2241
↓ 1 callersFunctioncJSON_GetArrayItem
cJSON.c:1866
↓ 1 callersFunctioncJSON_IsBool
cJSON.c:2908
↓ 1 callersFunctioncJSON_IsInvalid
cJSON.c:2877
↓ 1 callersFunctioncJSON_IsNull
cJSON.c:2917
↓ 1 callersFunctioncJSON_ParseWithOpts
cJSON.c:1075
↓ 1 callersFunctioncase_insensitive_strcmp
Case insensitive string comparison, doesn't consider two NULL pointers equal though */
cJSON.c:133
↓ 1 callersFunctioncreateBotRequest
Create a bot request object and return it to the caller. */
botlib.c:576
↓ 1 callersFunctiondbClose
Should be called every time a thread exits, so that if the thread has * an SQLite thread-local handle, it gets closed. */
botlib.c:627
↓ 1 callersFunctionkvGet
Get the specified key and return it as an SDS string. If the value is * expired or does not exist NULL is returned. */
sqlite_wrap.c:263
↓ 1 callersFunctionkvSet
Wrapper where the value len is obtained via strlen().*/
sqlite_wrap.c:257
next →1–100 of 207, ranked by callers