String functions.
More...
#include <string.h>
#include <bits/strings.h>
Go to the source code of this file.
String functions.
Definition in file strings.h.
◆ ffsll
| #define ffsll |
( |
|
x | ) |
( __builtin_constant_p ( x ) ? __constant_ffsll ( x ) : __ffsll ( x ) ) |
Find first (i.e.
least significant) set bit
- Parameters
-
- Return values
-
| lsb | Least significant bit set in value (LSB=1), or zero |
Definition at line 122 of file strings.h.
◆ ffsl
| #define ffsl |
( |
|
x | ) |
( __builtin_constant_p ( x ) ? __constant_ffsl ( x ) : __ffsl ( x ) ) |
Find first (i.e.
least significant) set bit
- Parameters
-
- Return values
-
| lsb | Least significant bit set in value (LSB=1), or zero |
Definition at line 131 of file strings.h.
◆ ffs
Find first (i.e.
least significant) set bit
- Parameters
-
- Return values
-
| lsb | Least significant bit set in value (LSB=1), or zero |
Definition at line 140 of file strings.h.
◆ flsll
| #define flsll |
( |
|
x | ) |
( __builtin_constant_p ( x ) ? __constant_flsll ( x ) : __flsll ( x ) ) |
Find last (i.e.
most significant) set bit
- Parameters
-
- Return values
-
| msb | Most significant bit set in value (LSB=1), or zero |
Definition at line 148 of file strings.h.
◆ flsl
| #define flsl |
( |
|
x | ) |
( __builtin_constant_p ( x ) ? __constant_flsl ( x ) : __flsl ( x ) ) |
Find last (i.e.
most significant) set bit
- Parameters
-
- Return values
-
| msb | Most significant bit set in value (LSB=1), or zero |
Definition at line 157 of file strings.h.
◆ fls
Find last (i.e.
most significant) set bit
- Parameters
-
- Return values
-
| msb | Most significant bit set in value (LSB=1), or zero |
Definition at line 166 of file strings.h.
◆ FILE_LICENCE()
| FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL |
| ) |
|
◆ __attribute__()
Find first (i.e.
Zero memory.
Copy memory.
Find last (i.e.
least significant) set bit
- Parameters
-
- Return values
-
| lsb | Least significant bit set in value (LSB=1), or zero |
most significant) set bit
- Parameters
-
- Return values
-
| msb | Most significant bit set in value (LSB=1), or zero |
- Parameters
-
| src | Source |
| dest | Destination |
| len | Length |
| dest | Destination |
| len | Length |
Definition at line 21 of file strings.h.
25 if ( ! (
x & 0x00000000ffffffffULL ) ) {
29 if ( ! (
x & 0x0000ffffUL ) ) {
33 if ( ! (
x & 0x00ff ) ) {
37 if ( ! (
x & 0x0f ) ) {
41 if ( ! (
x & 0x3 ) ) {
45 if ( ! (
x & 0x1 ) ) {
49 return (
x ? (
r + 1 ) : 0 );
static const uint8_t r[3][4]
MD4 shift amounts.
References r, and x.
◆ __ffsll()
| int __ffsll |
( |
long long |
x | ) |
|
◆ __ffsl()
◆ __flsll()
| int __flsll |
( |
long long |
x | ) |
|
◆ __flsl()
◆ strcasecmp()
| int __pure strcasecmp |
( |
const char * |
first, |
|
|
const char * |
second |
|
) |
| |
Compare case-insensitive strings.
- Parameters
-
| first | First string |
| second | Second string |
- Return values
-
Definition at line 208 of file string.c.
uint32_t first
First block in range.
int strncasecmp(const char *first, const char *second, size_t max)
Compare case-insensitive strings.
References first, and strncasecmp().
Referenced by com32_identify(), comboot_identify(), efi_block_label(), efi_file_find(), efi_file_open(), efi_local_check_volume_name(), efi_snp_hii_fetch(), efi_snp_hii_store(), http_authentication(), http_digest_authenticate(), http_format_metadata_flavor(), http_parse_connection(), http_parse_content_encoding(), http_parse_digest_auth(), http_parse_header(), http_parse_transfer_encoding(), http_scheme(), parse_fc_els_handler(), string_test_exec(), sundance_probe(), tftp_process_option(), uart_find(), and xfer_uri_opener().
◆ strncasecmp()
| int __pure strncasecmp |
( |
const char * |
first, |
|
|
const char * |
second, |
|
|
size_t |
max |
|
) |
| |
Compare case-insensitive strings.
- Parameters
-
| first | First string |
| second | Second string |
| max | Maximum length to compare |
- Return values
-
Definition at line 221 of file string.c.
226 for ( ;
max-- ; first_bytes++, second_bytes++ ) {
227 diff = (
toupper ( *first_bytes ) -
231 if ( ! *first_bytes )
uint32_t first
First block in range.
static int toupper(int character)
Convert character to upper case.
References first, max, and toupper().
Referenced by efi_file_open(), strcasecmp(), string_test_exec(), and x509_check_dnsname().
◆ dest
◆ len
Initial value:{
void * memmove(void *dest, const void *src, size_t len) __nonnull
Definition at line 176 of file strings.h.