#pragma once #include class cStringUtil { public: static std::wstring MBSToWCS( const std::string& _ssMbsStr, UINT _nCodePage = CP_UTF8 ); // 유니코드 문자열을 멀티바이트 문자열로 변환 static std::string WCSToMBS( const std::wstring& _ssWcs, UINT _nCodePage = CP_UTF8 ); // Format 함수는 가변 인수를 받아 들여 std::wstring을 포맷합니다. template static std::wstring Format( const std::wstring& format, Args&&... args ) { return std::vf..
C++20 이상: std::format 사용 예시 C++20에서는 std::format이라는 새로운 함수를 도입하여 문자열 포맷팅을 더욱 쉽게 할 수 있게 되었습니다. 이 함수는 Python의 str.format과 유사한 방식으로 작동합니다. 다만, std::format은 컴파일 시간에 포맷 문자열을 검사하여 타입 안전성을 보장합니다. #include #include #include template std::string stringformat(const std::string& format, Args ... args) { size_t size = snprintf(nullptr, 0, format.c_str(), args ...) + 1; if (size
아스트릭 처리된 경로 비교를 해봅시다 절대 경로를 비교 할 때 * 처리된 경로까지 넣어서 비교해 봅시다.\ 구현 /****************************************************************************** * _ _ _ _ __ _____ _ _ *| | | | | | | |/ / | __ \ | | | | *| |__| | __ _ ___ | |_ _| ' / | | | | _____ __ | | __ _| |__ *| __ |/ _` |/ _ \_ | | | | | < | | | |/ _ \ \ / / | | / _` | '_ \ *| | | | (_| | __/ |__| | |_| | . \ | |__| | __/\ V / | |___| (_| | ..
- Total
- Today
- Yesterday
- bit
- cpu 정보
- 대칭키
- 패턴
- 인젝션
- IV
- 디지털서명
- 네트워크 카드 이름
- RSA
- StringFormat
- 블록암호화
- string
- 해시
- 최우림
- 블럭암호화
- C# 고급 기술
- 네트워크 연결
- 네트워크 정보
- C
- 네트워크설정
- 백터
- cpu 이용률
- 디자인 패턴
- cpu 점유율
- C++
- process
- 암호화
- 디자인패턴
- C#.NET
- C#
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |