MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

Functiondate_days_in_year
* @brief Returns the total number of days in the year of the given date. * * This function calculates the total number of days in the year for the s
date/date.c:1314
Functiondate_days_to
* @brief Calculates the number of days between two dates. * * This function calculates the number of days between two Date objects. Both dates must
date/date.c:1417
Functiondate_deallocate
* @brief Deallocates a Date structure. * * This function frees the memory associated with a Date structure. If the * provided date pointer is NULL,
date/date.c:2161
Functiondate_first_day_of_month
* @brief Returns the first day of the month containing the given date. * * The returned object is a newly-allocated Date with the same year, month,
date/date.c:2320
Functiondate_from_string
* @brief Creates a Date object from a string representation of the date. * * This function parses a date string according to the provided format and
date/date.c:1726
Functiondate_from_unix
* @brief Build a Date from Unix time, taking the calendar day at UTC. * * Inverse of `date_to_unix`: the time-of-day part of `unix_seconds` is dropp
date/date.c:1971
Functiondate_get_date
* @brief Retrieves the year, month, and day from a Date object. * * This function extracts the year, month, and day values from the specified Date o
date/date.c:1125
Functiondate_is_greater_than_or_equal
* @brief Compares two dates to check if the first is greater than or equal to the second. * * This function compares two Date objects and determines
date/date.c:1540
Functiondate_is_less_than_or_equal
* @brief Compares two dates to check if the first is less than or equal to the second. * * This function compares two Date objects and determines if
date/date.c:1497
Functiondate_is_not_equals
* @brief Compares two Date objects for inequality. * * This function checks if two Date objects are not equal. The comparison takes into account *
date/date.c:1558
Functiondate_is_null
* @brief Checks if the provided Date object is null. * * This function checks if the Date object is NULL. If the Date object is NULL, * the functi
date/date.c:951
Functiondate_is_weekend
* @brief Returns true if the given date falls on a weekend. * * The convention differs by calendar: * - Gregorian: Saturday OR Sunday counts as w
date/date.c:2388
Functiondate_last_day_of_month
* @brief Returns the last day of the month containing the given date. * * Leap-year rules apply: Gregorian February returns 28 or 29; Persian * Esf
date/date.c:2339
Functiondate_max
* @brief Returns a newly-allocated clone of the later of two dates. * * Mirror of @ref date_min for NULL/calendar-mismatch semantics. When the * in
date/date.c:2288
Functiondate_min
* @brief Returns a newly-allocated clone of the earlier of two dates. * * If exactly one input is NULL, the other is cloned. If both are NULL, * re
date/date.c:2257
Functiondate_month
* @brief Retrieves the month from a Date object. * * This function returns the month for the specified Date object. * * @param date A pointer to t
date/date.c:1165
Functiondate_month_name
* @brief Returns the month name as a static, non-owning string. * * Gregorian dates produce English month names ("January"..."December"). * Persian
date/date.c:2449
Functiondate_quarter
* @brief Returns the calendar quarter (1..4) of the given date. * * Months 1..3 belong to Q1, 4..6 to Q2, 7..9 to Q3, 10..12 to Q4. The * mapping a
date/date.c:2366
Functiondate_set_date
* @brief Sets the date of a Date object. * * This function sets the year, month, day, and calendar type of a Date object. It also validates * the i
date/date.c:1626
Functiondate_to_string
* @brief Converts a Date object to a formatted string. * * This function takes a Date object and formats it as a string according to the provided fo
date/date.c:1795
Functiondate_to_unix
* @brief Convert a Date to Unix time (seconds since 1970-01-01T00:00:00 UTC). * * A Date carries no time-of-day, so the result is the epoch second a
date/date.c:1944
Functiondate_week_number
* @brief Calculates the ISO 8601 week number for a given date. * * This function calculates the ISO 8601 week number for a provided date, taking int
date/date.c:1353
Functiondate_weekday_name
* @brief Returns the English weekday name as a static, non-owning string. * * The pointer is into a private static table — do not free it and do not
date/date.c:2418
Functiondate_year
* @brief Retrieves the year from a Date object. * * This function returns the year for the specified Date object. * * @param date A pointer to the
date/date.c:1182
Functiondeque_assign
* @brief Assigns the specified value to a range of elements in the deque. * * This function clears the current contents of the deque and then resize
deque/deque.c:666
Functiondeque_back
deque/deque.h:108
Functiondeque_cbegin
* @brief Returns a constant iterator to the first element of the deque. * * This function provides a constant iterator (read-only) that points to th
deque/deque.c:1118
Functiondeque_cend
* @brief Returns a constant iterator to the position after the last element of the deque. * * This function provides a constant iterator (read-only)
deque/deque.c:1141
Functiondeque_crbegin
* @brief Returns a constant reverse iterator to the last element of the deque. * * This function provides a constant reverse iterator (read-only) th
deque/deque.c:1165
Functiondeque_create
* @brief Creates a new deque with a specified item size. * * This function initializes a new deque with the given item size. It allocates memory for
deque/deque.c:58
Functiondeque_crend
* @brief Returns a constant reverse iterator to the position before the first element of the deque. * * This function provides a constant reverse it
deque/deque.c:1186
Functiondeque_deallocate
* @brief Deallocates all memory associated with the deque. * * This function frees all elements and blocks associated with the deque, * and then de
deque/deque.c:386
Functiondeque_emplace
* @brief Inserts an element at the specified position in the deque. * * This function inserts an element at the given index in the deque. If the ind
deque/deque.c:759
Functiondeque_emplace_back
* @brief Inserts an element at the end of the deque. * * This function inserts a new element at the back of the deque. If the deque's * current bl
deque/deque.c:691
Functiondeque_emplace_front
* @brief Inserts an element at the front of the deque. * * This function inserts a new element at the front of the deque. If the deque's * current
deque/deque.c:734
Functiondeque_erase
* @brief Removes an element at a specified index in the deque. * * This function removes the element at the specified index in the deque. * It shif
deque/deque.c:540
Functiondeque_front
deque/deque.h:100
Functiondeque_is_greater
* @brief Compares two deques to determine if the first is greater than the second. * * This function checks whether the first deque is greater than
deque/deque.c:905
Functiondeque_is_greater_or_equal
* @brief Compares two deques to determine if the first is greater than or equal to the second. * * This function checks if the first deque is greate
deque/deque.c:971
Functiondeque_is_less
* @brief Compares two deques to determine if the first is less than the second. * * This function performs a lexicographical comparison of two deque
deque/deque.c:877
Functiondeque_is_less_or_equal
* @brief Compares two deques to determine if the first is less than or equal to the second. * * This function checks if the first deque is less than
deque/deque.c:945
Functiondeque_is_not_equal
* @brief Compares two deques for inequality. * * This function checks whether two deques are not equal, which means either * they have different si
deque/deque.c:928
Functiondeque_length
deque/deque.h:87
Functiondeque_max_size
* @brief Returns the maximum size of the deque. * * This function returns the maximum possible number of elements that the deque * can hold. This i
deque/deque.c:777
Functiondeque_pop_front
* @brief Removes the front element from the deque. * * This function removes the front element from the deque. * If the deque becomes empty, the f
deque/deque.c:222
Functiondeque_resize
* @brief Resizes the deque to the specified size. * * This function changes the size of the deque to the specified new size. * If the new size is
deque/deque.c:605
Functiondeque_shrink_to_fit
* @brief Shrinks the deque's memory usage to fit its current size. * * This function reduces the memory used by the deque to match its current size.
deque/deque.c:416
Functiondeque_swap
* @brief Swaps the contents of two deques. * * This function swaps the contents of the current deque with another deque. * The two deques will exc
deque/deque.c:640
Functiondestroy_global_memory_pool
string/std_string.c:202
Functiondestroy_mem_string
variant/variant.c:1424
Functiondir_absolute_file_path
* @brief Converts a relative file path to an absolute file path. * * @param relative_path The relative file path to convert. * @return A string rep
dir/dir.c:695
Functiondir_cd_up
* @brief Changes the current working directory to the parent directory. * * @return `true` if the directory was successfully changed, `false` otherw
dir/dir.c:774
Functiondir_change_extension
* @brief Returns a copy of @p path with its extension replaced. * * @p newExt may be passed with or without a leading dot; the function * normalise
dir/dir.c:2730
Functiondir_copy_directory
* @brief Copies a directory and its contents to a new location. * * @param srcDir The source directory path. * @param destDir The destination direc
dir/dir.c:1152
Functiondir_count
* @brief Counts the number of items in a directory. * * @param dirpath The path of the directory to count items in. * @return The number of items i
dir/dir.c:621
Functiondir_current_path
* @brief Gets the current working directory path. * * @return A string representing the current working directory path, or `NULL` on error. */
dir/dir.c:577
Functiondir_decrypt_file
* @brief Decrypts a file using the specified password and initialization vector. * * @param filePath The path of the file to decrypt. * @param pass
dir/dir.c:2102
Functiondir_dir_name
* @brief Gets the name of the directory from a specified path. * * @param dirpath The path of the directory. * @return A string representing the di
dir/dir.c:514
Functiondir_encrypt_file
* @brief Encrypts a file using the specified password and initialization vector. * * @param filePath The path of the file to encrypt. * @param pass
dir/dir.c:2023
Functiondir_extension
* @brief Returns the extension of a path INCLUDING the leading dot. * * Behavior: * - `"file.tar.gz"` → `".gz"` (only the last extension). * -
dir/dir.c:2682
Functiondir_get_creation_time
* @brief Gets the creation time of the specified directory. * * @param dirPath The path of the directory. * @return A string representing the creat
dir/dir.c:1721
Functiondir_get_directory_owner
* @brief Retrieves the owner of the specified directory. * * @param dirPath The path of the directory. * @param ownerBuffer The buffer to store the
dir/dir.c:2283
Functiondir_get_directory_size
* @brief Gets the size of a directory and its contents. * * @param dirPath The path of the directory to calculate size. * @return The size of the d
dir/dir.c:1307
Functiondir_get_file_owner
* @brief Retrieves the owner of the specified file. * * @param filePath The path of the file. * @param ownerBuffer The buffer to store the owner's
dir/dir.c:2184
Functiondir_get_file_size
* @brief Gets the size of a file. * * @param filePath The path of the file to calculate size. * @return The size of the file in bytes, or `-1` on e
dir/dir.c:1348
Functiondir_get_file_type
* @brief Determines the type of file located at the specified path. * * @param filePath The path of the file to check. * @return The type of the fi
dir/dir.c:1956
Functiondir_get_home_directory
* @brief Gets the user's home directory path. * * @return A string representing the home directory path, or `NULL` on error. */
dir/dir.c:1907
Functiondir_get_modified_time
* @brief Gets the modified time of the specified directory. * * @param dirPath The path of the directory. * @return A string representing the modif
dir/dir.c:1644
Functiondir_get_modified_time_unix
* @brief Modification time of a file or directory as Unix epoch seconds. * * Unlike `dir_get_modified_time`, which returns a localized * "YYYY-MM-D
dir/dir.c:1810
Functiondir_is_file
* @brief Checks if the specified path is a file. * * @param filePath The path to check. * @return `true` if the path is a file, `false` otherwise.
dir/dir.c:1425
Functiondir_is_file_exists
* @brief Checks if a file exists at the specified path. * * @param filePath The path of the file to check. * @return `true` if the file exists, `fa
dir/dir.c:1028
Functiondir_is_readable
* @brief Whether the current process can read `path`. * * Probes read access with `access(R_OK)` on POSIX and `_waccess` on Windows; a * missing pa
dir/dir.c:1854
Functiondir_is_writable
* @brief Whether the current process can write to `path`. * * Probes write access with `access(W_OK)` on POSIX and `_waccess` on Windows; a * missi
dir/dir.c:1883
Functiondir_list_recursive
* @brief Walks a directory tree and collects every file / directory. * * The collected paths are prefixed with `dirPath` so callers can use * them
dir/dir.c:3081
Functiondir_make_directories
* @brief Recursive mkdir -p — creates every intermediate directory. * * Walks the path component by component and creates each directory * that doe
dir/dir.c:2971
Functiondir_move_directory
* @brief Moves a directory and its contents to a new location. * * @param srcPath The source directory path. * @param destPath The destination dire
dir/dir.c:1577
Functiondir_move_file
* @brief Moves a file from a source path to a destination path. * * @param srcPath The source file path. * @param destPath The destination file pat
dir/dir.c:1521
Functiondir_normalize_path
* @brief Normalises path separators and collapses "." / ".." segments. * * Output uses the native separator. The function does NOT resolve * symlin
dir/dir.c:2792
Functiondir_remove_directory
* @brief Removes an empty directory. * * @param dirName The name of the directory to remove. * @return `true` if the directory was successfully rem
dir/dir.c:785
Functiondir_remove_directory_recursive
* @brief Recursively removes a directory and all its contents. * * @param dirPath The path of the directory to remove. * @return `true` if the dire
dir/dir.c:883
Functiondir_rename
* @brief Renames a file or directory. * * @param oldName The current name of the file or directory. * @param newName The new name for the file or d
dir/dir.c:927
Functiondir_search
* @brief Searches a directory for files matching a specified pattern. * * @param dirPath The path of the directory to search. * @param pattern The
dir/dir.c:2382
Functiondir_temp_directory
* @brief Returns the path of the system temporary directory. * * Windows: GetTempPathW result (typically %TEMP%). * POSIX: $TMPDIR, or "/tmp" as a
dir/dir.c:2921
Functionencoding_base16_decode
* @brief Decodes a Base16 (hexadecimal) encoded string into its binary form. * * Back-compat wrapper over `encoding_base16_decode_ex` that discards
encoding/encoding.c:1265
Functionencoding_base16_encode
* @brief Encodes binary data into Base16 (hexadecimal) format. * * This function encodes a given input string into Base16 format, also known as *
encoding/encoding.c:1134
Functionencoding_base32_decode
* @brief Decodes a Base32 encoded string back to binary data. * * Back-compat wrapper over `encoding_base32_decode_ex` that discards the decoded *
encoding/encoding.c:1114
Functionencoding_base32_encode
* @brief Encodes binary data into Base32 format. * * This function encodes a given input string into Base32 format. Base32 encoding * uses 32 char
encoding/encoding.c:998
Functionencoding_base58_decode
* @brief Decodes a Base58 encoded string back into its original binary form. * * @param b58 Pointer to the Base58 encoded string. * @param binszp P
encoding/encoding.c:1969
Functionencoding_base58_encode
* @brief Encodes binary data into a Base58 encoded string. * * Base58 is commonly used in cryptocurrencies such as Bitcoin. It is designed to avoid
encoding/encoding.c:1891
Functionencoding_base64_decode
* @brief Decodes a Base64 encoded string back to binary data. * * Back-compat wrapper over `encoding_base64_decode_ex` that discards the decoded *
encoding/encoding.c:855
Functionencoding_base64_encode
* @brief Encodes binary data into Base64 format. * * This function encodes a given input string into Base64 format. Base64 encoding * represents b
encoding/encoding.c:721
Functionencoding_base85_decode
* @brief Decodes a Base85 encoded string back into its original binary form. * * Base85 decoding interprets the encoded text and converts it back in
encoding/encoding.c:1794
Functionencoding_base85_encode
* @brief Encodes binary data into a Base85 encoded string. * * Base85 is an encoding method used to encode binary data into ASCII text, often used
encoding/encoding.c:1729
Functionencoding_base91_decode
* @brief Decodes a Base91 encoded string into its original binary form. * * @param encoded Pointer to the Base91 encoded string. * @param decoded_l
encoding/encoding.c:2054
Functionencoding_base91_encode
* @brief Encodes binary data into a Base91 encoded string. * * @param data Pointer to the binary data to be encoded. * @param length The length of
encoding/encoding.c:2132
Functionencoding_hex_dump
* @brief Converts a UTF-8 encoded string to a UTF-32 encoded string. * * This function converts a string from UTF-8 encoding to UTF-32 encoding. UTF
encoding/encoding.c:1679
Functionencoding_initialize
* @brief Initializes the encoding library by setting the locale for character encoding. * * This function should be called at the beginning of the
encoding/encoding.c:2308
Functionencoding_is_utf8_string
* @brief Validates whether the provided string is a valid UTF-8 string. * * This function checks if a given byte sequence conforms to UTF-8 encoding
encoding/encoding.c:1522
Functionencoding_url_decode
* @brief Decodes a URL-encoded string. * * This function decodes a URL-encoded string where each `%xx` sequence is replaced * by its corresponding
encoding/encoding.c:917
Functionencoding_url_encode
* @brief Encodes a URL string by replacing special characters with their percent-encoded representation. * * This function encodes a URL string by r
encoding/encoding.c:874
← previousnext →1,201–1,300 of 2,651, ranked by callers