Case-insensitive fixed-chunk comparisons. More...
#include <stdbool.h>#include <stdint.h>#include <string.h>
Include dependency graph for eqi.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| static uint64_t | make_lowercase_mask (uint64_t x, int bytenum) |
| Create a mask to lowercase alphabetic characters. | |
| static bool | eqi1 (const char *a, const char b[1]) |
| Compare two 1-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons. | |
| static bool | eqi2 (const char *a, const char b[2]) |
| Compare two 2-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons. | |
| static bool | eqi4 (const char *a, const char b[4]) |
| Compare two 4-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons. | |
| static bool | eqi8 (const char *a, const char b[8]) |
| Compare two 8-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons. | |
| static bool | eqi5 (const char *a, const char b[5]) |
| eqi5 - Compare two 5-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi6 (const char *a, const char b[6]) |
| eqi6 - Compare two 6-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi9 (const char *a, const char b[9]) |
| eqi9 - Compare two 9-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi10 (const char *a, const char b[10]) |
| eqi10 - Compare two 10-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi11 (const char *a, const char b[11]) |
| eqi11 - Compare two 11-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi12 (const char *a, const char b[12]) |
| eqi12 - Compare two 12-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi13 (const char *a, const char b[13]) |
| eqi13 - Compare two 13-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi14 (const char *a, const char b[14]) |
| eqi14 - Compare two 14-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi15 (const char *a, const char b[15]) |
| eqi15 - Compare two 15-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi16 (const char *a, const char b[16]) |
| eqi16 - Compare two 16-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
| static bool | eqi17 (const char *a, const char b[17]) |
| eqi17 - Compare two 17-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons | |
Case-insensitive fixed-chunk comparisons.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file eqi.h.
|
inlinestatic |
Create a mask to lowercase alphabetic characters.
| x | Character to test |
| bytenum | Which byte position to set |
| num | Bitmask |
Utility for the functions below
If the character is alphabetic, then the position determines where to shift the 0x20 mask.
Definition at line 65 of file eqi.h.
Here is the caller graph for this function:
|
inlinestatic |
Compare two 1-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons.
| a | First string |
| b | Second string, must be lower case |
| true | Strings match |
Definition at line 78 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Compare two 2-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons.
| a | First string |
| b | Second string, must be lower case |
| true | Strings match |
Definition at line 90 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Compare two 4-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons.
| a | First string |
| b | Second string, must be lower case |
| true | Strings match |
Definition at line 106 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Compare two 8-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons.
| a | First string |
| b | Second string, must be lower case |
| true | Strings match |
Definition at line 124 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi5 - Compare two 5-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 145 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi6 - Compare two 6-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 151 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi9 - Compare two 9-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 159 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi10 - Compare two 10-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 165 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi11 - Compare two 11-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 171 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi12 - Compare two 12-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 177 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi13 - Compare two 13-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 183 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi14 - Compare two 14-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 189 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi15 - Compare two 15-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 195 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi16 - Compare two 16-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 201 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
eqi17 - Compare two 17-byte strings, ignoring case - See: Case-insensitive fixed-chunk comparisons
Definition at line 207 of file eqi.h.
Here is the call graph for this function:
Here is the caller graph for this function: