C???
C?? ???? ??? ?? ???? ???? ?? ?? ???? ?? ???? ?? ?? ? ??? ?? ???? ?? ????? ??? ???? ???? ???? ??? ?? ?????.

<cctype></cctype>
?? std::toupper
? std::tolower
??????
C? <cctype></cctype>
??? std::toupper
? std::tolower
?????. ??? ??? ?? ???? ????? ?? ???? ????? ? ??? ?? ????? ??? ???????.
??? ?? ??? ????.

#include <iostream> #include <???> #include <cctype> int main () { std :: ??? input = "Hello World!"; // ???? ????? for (char & c : input) { c = std :: toupper (static_cast <unsigned char> (c)); } std :: cout << ?? << std :: endl; // ???? ?? ????? for (char & c : input) { c = std :: tolower (static_cast <unsigned char> (c)); } std :: cout << ?? << std :: endl; ?? 0; }
???? ? ? ?? ?? :
-
std::toupper
??std::tolower
? ???? ?? ?? ???unsigned char
?? ???????. ??? ?? ?? ?? ???? ?? ??? ????. - ??? ??? ??? ???? ?????. ?? ???? ????? ?? ??? ?????.
??? ?? ???? ???? ?? ??????
?? ?????? ???? ?????? ???? ?? Boost ?????? boost::algorithm::to_upper_copy
? boost::algorithm::to_lower_copy
? ?? ??? ????? ?????.

?:
#include <boost/algorithm/string.hpp> #include <???> #include <iostream> int main () { std :: ??? input = "Hello World!"; std :: string upper = boost :: ???? :: to_upper_copy (??); std :: string lower = boost :: Algorithm :: to_lower_copy (??); std :: cout << ?? << std :: endl; std :: cout << lower << std :: endl; ?? 0; }
? ??? ? ???? Edge Case? ? ????? Boost? ???? ???? ??? ???? ? ???? ????? ????? ?? ? ????.
??? ??? ??????
??? ?? ?? (?? ???? ??? ?? ? ??? ??)? ?? ?? std::toupper
? std::tolower
?? ??? ??? ?? ????? ?? ??????. ????? ASCII ?? ? ???? ?????.
?? ????? ?? ??? ???? ?? ???? ?? :
- ???? ??? ???? ??? ASCII? ??????.
- ??? ??? ??? ???? ??? ??? ?? ICU (?? ??? ?? ?? ??)? ?? ?????? ???? ?? ??????.
?? ??????.
- ?? ???? ??? ? ???? ????.
- ?? ??? ?? ??? ?? ?? ??? ? ???? (? : ???? ??? → SS).
??? ?? ???? ??????? ??? ??? ??? ???? std::toupper
? std::tolower
???? ??? ?? ??? ??? ??? ?????. ? ??? ?? ?? ? ? ?? ????? ?? Boost ?? ICU? ???? ? ??? ? ? ????. ?? ???, ???? ?? ???? ? ????? ?? ??? ????.
? ??? C?? ???? ??? ?? ???? ???? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??? ?? ?? ???? ?? ????? ???? ?? ??? ? ?? ? ?????. ?? ?? ???? ????? ???? ??, ???? ? ??? ??? ?? ?????. ??? ??? ????? ???? ??? ??? ?? ??? ???? ???? ?? ? ?? ??? ??? ? ????. ???? ??? ??? ??? ?? ???? ? ??? ??? ???? ???? ?? ? ?????.

C? ???? ??? ??? ????? ?? ??? ?? ? ? ???? ???? ?? ?? ?????. ?? ??? ???, ?? ?? ?? ???? ??? ?? ???? ?? ?? ? ??? ???? ???? ????. ?? ??? ??? ?? ??, ????? ??? ?? ? ? ? ??? ???? ?? ??? ?? ? ? ???? ???? ?????. ???? ?? ? ? ??? ?? ?? ~? ?????? ?? ??? ?? ?? ????. ???? ?? ?? ????? ?? ???? ????? ?? ??? ???? ???? ????. ?? ?? ?? : ? ????? ??? ??? ? ?? ? ??? ???? ???? ????. ?? ???? ???? ???? ???? ?? ????. ?? ???? ???? ?? ?? ? ?? ???? ?????.

RAII? C? ?? ??? ???? ??? ?????. ??? ?? ????? ?? ??? ???? ???? ? ????. ?? ????? ??? ????. ??? ?? ??? ???? ??? ????? ?? ??? ?? ?? ??? ????. ?? ??, RAII??? ?? ?? ??? ???? fclose? ???????. ??? ??? ??? ?? ?? ?? ??? ?? ?? ?? ? ????. ?? ?? ???? ?? RAII? ??? ? ?? ??? ????? ???? ??? ?? ?? ??? ??????. 1.RAII? ?? ?? (? : std :: lock_guard), 2. ??? ?? (? : std :: ?? ?), 3. ?????? ? ???? ?? ?? ?? ?????.

std :: ??? ?? ??? ??? ????? has_value () ???? ????? if ??? ?? ?? ? ? ????. ???? ??? ??? ?? ? ?? null ??? ? ??? ??? ?? std :: ??? ???? ?? ????. ??? ?????? ???, ?? ?? ? ?? ??? ? ?? ??? ?? ?????? ? ?????. ??? ??? ????? Reset ()? ???? ??? ???? ???? ? ?? ?????? ???????.

std :: ??? ? ?? ??? ?? 4 ?? ???? ??? ????. 1. ?? () ???? ???? ??? ?? ?? ??? ??? ??? ?? ?? ???? ?? ????. 2. ?? [0]? ???? Front ()? ??? ? ??? ??? ?? ?? ??? ????????. 3. ?? ????? ? STL ????? ??? *?? () ??; 4. ???? ????? ?? ??? ?? ?? (0)? ???? ??? ?? ? ??? ?????. ?? ??? ?? ?? ??? ?????. ?? ??? ?? ? ()? ???? ?? ??? ??? ?? Front () ???? ???? ???? ?? ??? ??? ?? ? ?? ??? ?? ????.

PHP? AI ??? ?? ??? ??? ?? AI ??? API (? : OpenAI, HuggingFace)? ?????? ???? ??? ???, API ??, ?? ?? ? ?? ?????? ???? ????. 2. ??? ??? ??? ??? AI ???? ???? ????. ?? ??? API, ??? ?? ? ??? ??? ???? ????. 3. ?? ??? ?? ??, ??, ??, ???, ??? ????? ? GPT ?? BART/T5? ?? ?? ??? ???????. 4. ?? ????? ??, ??? ?, ?? ?? ? ?? ?? ??? ?????. ?? ??? ???? ????? ???? ??? ???? ?? ?? ?? ? ??, ???? ?? ??, ?? ??, ?? ?? ? ??? ???????.

?? ?? ??? ?? ??? ????? ??? ? ????. 1. I-th ??? 1?? ?????? : N & (1 ??

?? ?? ??? ?? ???? ???? ??? ???? ???? ?? ??? ????. ?? ???? ?? == null and isempty ()? ???? ????. 1. ?? str == null? ???? null ??? ??? ?? ?? str.isempty ()? ???? ? ?? ??????. 2. Apachecommons 'stringUtils.isempty (str)? ???? NULL? ? ?? ??? ???? ??? ? ?????. 3. ?? ??? ?? ???? ?? str.trim (). isempty () ?? StringUtils.isblank ()? ??? ? ????. ?? ??? ?? ??? ???? ??? ? ?? ?? ??? ?? ????.
