FCT
载入中...
搜索中...
未找到
string.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/4/11.
3//
4
5#ifndef STRING_H
6#define STRING_H
7namespace FCT {
8 constexpr bool StringEquals(const char* a, const char* b) noexcept {
9 if (a == b) return true;
10 if (!a || !b) return false;
11
12 while (*a && *b) {
13 if (*a != *b) return false;
14 ++a;
15 ++b;
16 }
17
18 return *a == *b;
19 }
20
21}
22#endif //STRING_H
constexpr bool StringEquals(const char *a, const char *b) noexcept
定义 string.h:8