MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

Functionstatistics_stdev
* @brief This function calculates the sample standard deviation of the given data points. * Optionally, it can use a provided mean (xbar) instead of
statistics/statistics.c:751
Functionstring_back
* @brief Returns a pointer to the last character in the String object. * * This function returns a pointer to the last character in the String objec
string/std_string.c:1357
Functionstring_base64_decode
* @brief This function takes a Base64-encoded String object and decodes it back into its original * binary form. The decoded result is returned as a
string/std_string.c:3119
Functionstring_base64_encode
* @brief Encodes a String object into Base64 format. * * This function takes a String object and encodes its content into Base64 format. * The enco
string/std_string.c:3065
Functionstring_begin
* @brief Returns a pointer to the beginning of the string. * * This function returns a pointer to the first character of the string data. * If the
string/std_string.c:1807
Functionstring_capacity
* @brief Retrieves the capacity of the String object. * * This function returns the current capacity of the String object, which indicates the maxim
string/std_string.c:1417
Functionstring_cbegin
* @brief This function returns a pointer to the first character of the string data. * If the input String is NULL or uninitialized, an error is logge
string/std_string.c:1885
Functionstring_cend
* @brief This function returns a pointer to the position just after the last character of the string data. * If the input String is NULL or uninitial
string/std_string.c:1903
Functionstring_clear
* @brief This function resets the String object, setting its size to zero and its first character to the null terminator, * effectively making it an
string/std_string.c:1953
Functionstring_compare_ignore_case
* @brief Compares two String objects in a case-insensitive manner. * * This function compares two String objects without considering case sensitivit
string/std_string.c:3027
Functionstring_concatenate
* @brief This function appends the content of the second String object (str2) to the first String object (str1). * If either of the input String obje
string/std_string.c:2131
Functionstring_contains
* @brief Checks if the given substring is contained within the String object. * * This function checks whether the specified substring is present in
string/std_string.c:558
Functionstring_copy
* @brief Copies a substring from the String object into the provided buffer. * * This function copies up to `len` characters from the String object,
string/std_string.c:1462
Functionstring_count
* @brief Counts the occurrences of a substring within a String object. * * This function counts how many times a given substring appears within a St
string/std_string.c:2708
Functionstring_crbegin
* @brief This function returns a pointer to the last character of the string data, allowing reverse iteration. * If the input String is NULL, uniniti
string/std_string.c:1920
Functionstring_create_from_initializer
* @brief This function takes a variable number of C-strings as input, creates a new String object * for each, and returns an array of pointers to the
string/std_string.c:3699
Functionstring_create_with_pool
* @brief Creates a new String object with a memory pool of the specified size. * * This function creates a new String object that uses a globally in
string/std_string.c:434
Functionstring_crend
* @brief This function returns a pointer to one position before the start of the string data, allowing reverse iteration to stop. * If the input Stri
string/std_string.c:1937
Functionstring_data
* @brief Returns the raw string data. * * This function returns a pointer to the character array managed by the String object. * If the input Strin
string/std_string.c:1763
Functionstring_deallocator_json
* @brief Deallocates memory used by a string. * @param data A pointer to the string to be deallocated. */
json/json.c:351
Functionstring_end
* @brief Returns a pointer to the end of the string. * * This function returns a pointer to the position just after the last character of the string
string/std_string.c:1830
Functionstring_ends_with
* @brief This function determines whether the String object `str` ends with the specified C-string `substr`. * * @param str The String object to ch
string/std_string.c:3556
Functionstring_erase
* @brief Erases a portion of the String object starting from the specified position. * * This function removes `len` characters from the String obje
string/std_string.c:1150
Functionstring_find
* @brief Finds the first occurrence of a substring in the String object starting from the given position. * * This function searches for the first o
string/std_string.c:1503
Functionstring_find_first_not_of
* @brief Finds the first character in the string that does not match any character in the buffer starting from the given position. * * This function
string/std_string.c:1674
Functionstring_find_first_of
* @brief Finds the first occurrence of any character from the buffer in the string starting from the given position. * * This function searches the
string/std_string.c:1592
Functionstring_find_last_not_of
* @brief Finds the last position in the string that does not match any character in the buffer. * * This function searches from the given position b
string/std_string.c:1720
Functionstring_find_last_of
* @brief Finds the last occurrence of any character from the buffer in the string up to the given position. * * This function searches the string up
string/std_string.c:1631
Functionstring_format
* @brief This function formats the content of a String object based on the provided format * string and additional arguments, similar to how printf
string/std_string.c:3200
Functionstring_from_double
* @brief Creates a new String object from a float value. * * This function converts a floating-point number to its string representation * and retu
string/std_string.c:2914
Functionstring_from_float
* @brief Creates a new String object from a float value. * * This function converts a floating-point number to its string representation * and retu
string/std_string.c:2886
Functionstring_from_hex
* @brief Converts a hex-encoded string to a new String object. * * This function takes a hex-encoded string (e.g., "48656c6c6f") and converts it int
string/std_string.c:2665
Functionstring_from_int
* @brief Creates a new String object from an integer value. * * This function converts an integer value to its string representation and returns a n
string/std_string.c:2828
Functionstring_from_int_cstr
* @brief Converts an integer value to a C-string representation. * * This function converts an integer value to its C-string representation and retu
string/std_string.c:2856
Functionstring_from_unicode
* @brief This function converts a wide-character string `wstr` (typically in Unicode) to a * multi-byte C-string and then creates a new String object
string/std_string.c:3661
Functionstring_front
* @brief Returns a pointer to the first character in the String object. * * This function returns a pointer to the first character in the String obj
string/std_string.c:1377
Functionstring_insert
* @brief Inserts a substring into the String object at the specified position. * * This function inserts the contents of `strItem` into the String o
string/std_string.c:1092
Functionstring_is_alnum
* @brief Checks if the given String object contains only alphanumeric characters. * * This function verifies whether the input String object consist
string/std_string.c:4022
Functionstring_is_alpha
* @brief Checks if the String object contains only alphabetic characters. * * This function checks if all characters in the String object are alphab
string/std_string.c:719
Functionstring_is_digit
* @brief Checks if the String object contains only digit characters. * * This function checks if all characters in the String object are numeric dig
string/std_string.c:744
Functionstring_is_equal
* @brief Compares two String objects for equality. * * This function compares two String objects to check if they are equal. * It returns true if
string/std_string.c:622
Functionstring_is_greater
* @brief Compares if the first String object is greater than the second. * * This function compares two String objects to determine if the first one
string/std_string.c:654
Functionstring_is_greater_or_equal
* @brief Compares if the first String object is greater than or equal to the second. * * This function compares two String objects to determine if t
string/std_string.c:686
Functionstring_is_less
* @brief Compares if the first String object is less than the second. * * This function compares two String objects to determine if the first one is
string/std_string.c:638
Functionstring_is_less_or_equal
* @brief Compares if the first String object is less than or equal to the second. * * This function compares two String objects to determine if the
string/std_string.c:670
Functionstring_is_lower
* @brief Checks if all characters in the String object are lowercase. * * This function iterates through the characters of the String object and che
string/std_string.c:792
Functionstring_is_not_equal
* @brief Compares two String objects for inequality. * * This function compares two String objects to check if they are not equal. * It returns tr
string/std_string.c:703
Functionstring_is_palindrome
* @brief Checks if the given String object is a palindrome. * * This function verifies whether the input String object is a palindrome. * A palind
string/std_string.c:3981
Functionstring_is_printable
* @brief Checks if all characters in the given String object are printable. * * A character is considered printable if its ASCII value is greater th
string/std_string.c:4163
Functionstring_is_space
* @brief Checks if the given String object consists entirely of space characters. * * This function iterates over the characters in the String objec
string/std_string.c:4120
Functionstring_is_title
* @brief Checks if the given String object is in title case. * * A string is considered to be in title case if every word starts with an uppercase l
string/std_string.c:4061
Functionstring_is_upper
* @brief Checks if all characters in the String object are uppercase. * * This function iterates through the characters of the String object and che
string/std_string.c:768
Functionstring_join
* @brief Joins an array of String objects into a single String object using a specified delimiter. * * This function takes an array of String object
string/std_string.c:2339
Functionstring_join_variadic
* @brief This function joins `count` String objects together into a single String object. * The String objects are passed as variadic arguments. If
string/std_string.c:3302
Functionstring_max_size
* @brief Returns the maximum possible size of the String object. * * This function returns the maximum possible size of the String object. The value
string/std_string.c:1437
Functionstring_pad_left
* @brief Pads the left side of a String object with a specified character until it reaches the desired total length. * * This function pads the left
string/std_string.c:2524
Functionstring_pad_right
* @brief Pads the right side of a String object with a specified character until it reaches the desired total length. * * This function pads the rig
string/std_string.c:2569
Functionstring_pop_back
* @brief Removes the last character from the String object. * * This function removes the last character from the String object, reducing its size b
string/std_string.c:1272
Functionstring_rbegin
* @brief Returns a pointer to the last character of the string. * * This function returns a pointer to the last character in the string data, allowi
string/std_string.c:1849
Functionstring_remove
* @brief Removes all occurrences of a substring from a String object. * * This function removes all instances of a specified substring from a String
string/std_string.c:2750
Functionstring_remove_range
* @brief Removes a range of characters from the String object. * * This function removes characters from the String object starting from @p startPos
string/std_string.c:2797
Functionstring_rend
* @brief This function returns a pointer to one position before the start of the string data. * This is typically used in reverse iteration contexts.
string/std_string.c:1868
Functionstring_repeat
* @brief This function creates a new String object that contains the content of the input * String object `str` repeated `count` times. If `str` or
string/std_string.c:3256
Functionstring_replace_all
* @brief Replaces all occurrences of a substring within a String object with another substring. * * This function searches for all occurrences of th
string/std_string.c:2388
Functionstring_reserve
* @brief Reserves memory for the string to ensure it has enough capacity. * * This function checks if the string has enough capacity for the specifi
string/std_string.c:4199
Functionstring_resize
* @brief Resizes the String object to the specified size. * * This function resizes the String object to the new size specified by `newSize`. * If
string/std_string.c:848
Functionstring_reverse
* @brief Reverses the characters in the String object. * * This function reverses the order of characters in the String object. * It allocates mem
string/std_string.c:815
Functionstring_rfind
* @brief Finds the last occurrence of a substring in the String object up to the given position. * * This function searches for the last occurrence
string/std_string.c:1544
Functionstring_set_pool_size
* @brief This function sets a new memory pool size for the given String object. If a memory pool already exists, * it is destroyed and a new one is c
string/std_string.c:2048
Functionstring_shrink_to_fit
* @brief Reduces the capacity of the String object to fit its current size. * * This function shrinks the capacity of the String object to match its
string/std_string.c:895
Functionstring_shuffle
* @brief This function randomizes the order of characters in the String object `str`. * The function checks that the String object and its data are
string/std_string.c:3392
Functionstring_split
* @brief Splits a String object into an array of String objects based on a specified delimiter. * * This function takes a String object and splits i
string/std_string.c:2253
Functionstring_starts_with
* @brief This function determines whether the String object `str` starts with the specified * C-string `substr`. * * @param str The String object
string/std_string.c:3519
Functionstring_strcmp
* @brief This function compares two C-strings using the standard `strcmp` function. * It returns an integer indicating the relationship between the t
string/std_string.c:3898
Functionstring_substr
* @brief Extracts a substring from the given String object. * * This function creates a new String object containing a substring of the original str
string/std_string.c:479
Functionstring_swap
* @brief Swaps the contents of two String objects. * * This function exchanges the contents of `str1` and `str2`. * * @param str1 The first String
string/std_string.c:1248
Functionstring_swap_case
* @brief This function converts all lowercase characters in the String object `str` to uppercase, * and all uppercase characters to lowercase. * *
string/std_string.c:3592
Functionstring_to_bool_from_cstr
* @brief This function checks if the provided C-string is "true" or "false" and * returns the corresponding boolean value. The comparison is case-sen
string/std_string.c:3833
Functionstring_to_capitalize
* @brief This function converts the first character of the String object `str` to uppercase. * The function ensures that the String object is not NUL
string/std_string.c:3465
Functionstring_to_casefold
* @brief This function iterates over the characters in the String object `str` and converts * each character to its lowercase equivalent. * * @par
string/std_string.c:3494
Functionstring_to_double
* @brief Converts the content of a String object to a double-precision floating-point number. * * This function converts the content of the given St
string/std_string.c:2493
Functionstring_to_float
* @brief Converts the content of a String object to a floating-point number. * * This function converts the content of the given String object to a
string/std_string.c:2464
Functionstring_to_hex
* @brief Converts the content of a String object to its hexadecimal representation. * * This function converts each character in the given String ob
string/std_string.c:2622
Functionstring_to_int
* @brief Converts the content of a String object to an integer. * * This function converts the content of the given String object to an integer. *
string/std_string.c:2435
Functionstring_to_lower
* @brief This function creates a new C-string with all characters in the given String object converted to lowercase. * If the input String is NULL, a
string/std_string.c:2009
Functionstring_to_title
* @brief This function converts the String object `str` to title case, where the first letter * of each word is capitalized and all other letters ar
string/std_string.c:3427
Functionstring_to_unicode
* @brief This function converts a multi-byte C-string `str` to a wide-character string (typically Unicode). * * @param str The C-string to be conver
string/std_string.c:3625
Functionstring_to_upper
* @brief This function creates a new C-string with all characters in the given String object converted to uppercase. * If the input String is NULL, a
string/std_string.c:1974
Functionstring_tokenize
* @brief This function tokenizes the content of the given String object using the specified delimiters. * It returns an array of String objects, each
string/std_string.c:2944
Functionstring_trim_characters
* @brief This function removes any characters specified in the `chars` string from the beginning * and the end of the String object `str`. It ensure
string/std_string.c:3350
Functionsysinfo_battery_percentage
* @brief Returns the battery charge level as a whole percentage (0..100). * * Implementation: * - Windows: `GetSystemPowerStatus` (`BatteryLifePer
sysinfo/sysinfo.c:3193
Functionsysinfo_boot_unique_id
* @brief Return a unique identifier for the current boot session. * * - Linux: `/proc/sys/kernel/random/boot_id`. * - Windows: an integer der
sysinfo/sysinfo.c:812
Functionsysinfo_build_abi
* @brief Return an ABI descriptor combining architecture + endianness + * data-model (e.g. "x86_64-little_endian-llp64" on 64-bit Win, *
sysinfo/sysinfo.c:928
Functionsysinfo_cpu_cores
* @brief Return the number of logical CPU cores available to the process. * * Backend: * - Windows: `GetSystemInfo().dwNumberOfProcessors`. *
sysinfo/sysinfo.c:1766
Functionsysinfo_cpu_model
* @brief Returns the human-readable CPU brand/model string (static storage). * * Complements `sysinfo_cpu_architecture` ("x86_64") and `sysinfo_cpu_
sysinfo/sysinfo.c:3328
Functionsysinfo_cpu_usage
* @brief Return the current CPU usage as a percentage in [0, 100]. * * The first call seeds the previous-times baseline; subsequent calls * compute
sysinfo/sysinfo.c:1600
Functionsysinfo_current_working_directory
* @brief Returns the current working directory of the calling process. * * Uses a growing buffer so paths longer than `PATH_MAX` (rare but * legal
sysinfo/sysinfo.c:2628
Functionsysinfo_deallocate_disk_partitions
* @brief Deallocates the memory used by a vector of SysinfoDiskPartition structures. * * This function iterates over a vector of `SysinfoDiskPartit
sysinfo/sysinfo.c:2407
Functionsysinfo_deallocate_network_interfaces
* @brief Release a Vector previously returned by * `sysinfo_network_interfaces`. * * Frees each element's `interface_name` and `ip_address`,
sysinfo/sysinfo.c:2072
Functionsysinfo_default_shell
* @brief Returns the path of the user's default shell / command interpreter. * * Implementation: * - Windows: the `COMSPEC` environment variable (
sysinfo/sysinfo.c:3239
← previousnext →2,201–2,300 of 2,651, ranked by callers