<commit_before>#ifndef _STRING_H
#define _STRING_H

#include <stdint.h>
#include <Library/StrLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>

#define strcmp(s1, s2) AsciiStrCmp((s1), (s2))
#define strncmp(s1, s2, n) ((int)AsciiStrnCmp((s1), (s2), (n)))
#define strlen(s) ((size_t)AsciiStrLen((s)))
#define strstr(s1 , s2) AsciiStrStr((s1), (s2))
#define memset(s, c, n) SetMem((s), (UINTN)(n), (UINT8)(c))
#define memcpy(s1, s2, n) CopyMem((s1), (s2), (n))

static inline char *strncpy(char *dest, const char *src, size_t n) {
    RETURN_STATUS Status = AsciiStrCpyS(dest, n, src);
    if (RETURN_ERROR(Status))<commit_msg>Library/MicroLibC: add strcasecmp<commit_after>#ifndef _STRING_H
#define _STRING_H

#include <stdint.h>
#include <Library/StrLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>

#define strcmp(s1, s2) AsciiStrCmp((s1), (s2))
#define strcasecmp(s1, s2) AsciiStriCmp((s1), (s2))
#define strncmp(s1, s2, n) ((int)AsciiStrnCmp((s1), (s2), (n)))
#define strlen(s) ((size_t)AsciiStrLen((s)))
#define strstr(s1 , s2) AsciiStrStr((s1), (s2))
#define memset(s, c, n) SetMem((s), (UINTN)(n), (UINT8)(c))
#define memcpy(s1, s2, n) CopyMem((s1), (s2), (n))

static inline char *strncpy(char *dest, const char *src, size_t n) {
    RETURN_STATUS Status = AsciiStrCpyS(dest, n, src);
    if (RETURN_ERROR(Status))
{'fraction_non_alphanumeric': 0.1972140762463343, 'fraction_numerical': 0.02785923753665689, 'mean_word_length': 6.8, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5811505', 'n_tokens_mistral': 602, 'n_tokens_neox': 596, 'n_words': 132}