Commit Graph
31 Commits
Author SHA1 Message Date
mercury233 4f023e3123 use insert in BufferIO::VectorWriteBlock 2026-02-27 16:27:19 +08:00
salix5 56c313c61d Use vector in DuelClient::SendUpdateDeck (#2952) 2026-01-10 16:34:51 +08:00
Mercury233 6181208392 minor typos (#2890) 2025-07-30 09:47:25 +08:00
Mercury233 0f73f2282a update CopyString & CopyWideString (#2884) 2025-07-23 11:28:37 +08:00
salix5 a58e7c31bc use wcsrtombs in UTF-8 encoding (#2860)
* use wcsrtombs in  UTF-8 encoding

* fix underflow

* static_cast
2025-07-07 13:32:34 +08:00
salix5 42a427a4fa use function template BufferIO::Read (#2835) 2025-07-06 13:18:46 +08:00
Mercury233 4954c5375b fix CopyString & CopyWideString (#2799) 2025-05-20 11:07:19 +08:00
salix5 f13fc8cc00 update @param def in CopyWStr 2025-05-19 21:08:14 +08:00
salix5 298b43a807 update BufferIO::GetVal (#2623) 2024-11-30 20:53:44 +08:00
salix5 51929625b3 BufferIO: add CopyCharArray (#2616)
array length is determined by reference to array
2024-11-16 11:51:18 +08:00
salix5 79be003f11 BufferIO: fix CopyString (#2615) 2024-11-16 07:53:38 +08:00
salix5 48b01b838c remove wcscpy, wcscat (#2602)
* use wcsncpy

* fix FileSystem::TraversalDir

* avoid wcscat

* remove wcscat

* add BufferIO::CopyWideString

* struct Config: path string changed to wchar_t[256]

* Revert "use wcsncpy"

This reverts commit b05e0c96a3.

* check lastcategory, lastdeck

* fix Game::LoadConfig

max length of filename should be determined by file system

* remove wcscpy

* use BufferIO::CopyWideString

* fix UpdateDeck

* myfilesystem: use std functions

* DataManager: fix GetNumString (#2603)

* DataManager: fix FormatAttribute, FormatRace

* update FormatAttribute, FormatRace

* DataManager: fix FormatType

* update FormatType

* DataManager: fix FormatSetName

* DataManager: fix FormatLinkMarker

* merge

* DataManager: fix GetNumString

* rebuild class ustring16 from edopro version

* add stringw conversion

core::stringw in current version does not have data()

* add CGUITTFont::drawUstring

* use drawUstring

* update DrawShadowText

* fix Game::lpcstring

* fix DuelInfo::vic_string

* add PACK_MAX_SIZE

* add IsExtension (#2604)

* CGUITTFont: use override

* ustring16: only accept basic_string
2024-11-06 08:34:12 +08:00
salix5 3aeb76afa4 fix EncodeUTF8String, DecodeUTF8String (#2585)
* add CheckStringSize

* add IsUnicodeChar

* fix EncodeUTF8String

* fix DecodeUTF8String

* add ConvertUTF8

* remove unnecessary inline
2024-09-07 13:56:04 +08:00
salix5 db18ac907b use unsigned in bitwise operator (#2567)
* use unsigned in bitwise operator

* use unsigned in bitwise operator
2024-07-08 00:53:47 +08:00
salix5 cc91dc81ee verify the source of BufferIO::CopyWStr (#2558)
* verify the source of BufferIO::CopyWStr

* add BufferIO::NullTerminate

* use MAX_STRING_ID

* use constant

* use constant
2024-06-09 11:00:08 +08:00
salix5 8902f818e8 BufferIO: update CopyWStr (#2554) 2024-05-31 23:26:28 +08:00
salix5 b8480c3b59 format 2024-05-25 16:02:45 +08:00
salix5 76bd50023d add EncodeUTF8String, DecodeUTF8String 2024-05-25 16:02:45 +08:00
salix5 4c91f19f41 fix EncodeUTF8, DecodeUTF8 (#2540)
* check sizeof(wchar_t)

* EncodeUTF8: use unsigned operand

* DecodeUTF8: use unsigned operand

* EncodeUTF8: check array size

* DecodeUTF8: check array size

* replace sprintf with snprintf

* zero initialize

* remove outdated macro

* remove outdated macro in clzma
2024-05-21 15:32:29 +08:00
salix5 f29450b9c3 use memcpy in bufferio.h (#2524)
* use memcpy in bufferio.h

* include

* use std::memcpy

* use BufferIO Read/Write

* use fixed width integer

* include <cstdint>
2024-05-12 22:12:06 +08:00
salix5 41d0ed07b3 GetVal return 0 when match failed (#2539) 2024-04-28 21:26:22 +08:00
salix5 91865916b7 fix signed overflow in BufferIO::GetVal() (#2530) 2024-04-27 17:21:56 +08:00
salix5 10a27acf96 remove warning C4244 from bufferio.h (#2536) 2024-04-23 17:56:07 +08:00
salix5 32389dda77 use unsigned char buffer 2023-12-14 16:10:19 +08:00
DailyShana 64bdbda249 update encode/decode utf8 2018-09-14 19:24:20 +08:00
salix5 022eed1a6e DecodeUTF8() 2016-03-26 00:17:56 +08:00
VanillaSalt e5bcb58e78 fix 2013-11-11 09:03:43 +09:00
argon b48e4f5f08 fix 2013-04-12 18:10:31 +08:00
argon.sun 0d6548eb6b fix 2012-02-01 20:30:11 +08:00
argon.sun 42ea0f6916 network 2012-01-11 21:04:08 +08:00
argon.sun bcfd1afc60 recon 2012-01-10 21:08:42 +08:00