Changeset 449
- Timestamp:
- Sep 5, 2020, 7:17:44 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/cppbase/bs_string.h
r421 r449 23 23 24 24 /* 25 * This file Copyright (C) 1999-20 15Ulrich Mller.25 * This file Copyright (C) 1999-2020 Ulrich Mller. 26 26 * This program is free software; you can redistribute it and/or modify 27 27 * it under the terms of the GNU General Public License as published by … … 910 910 BSUString(BSUniCodec *pCodec, 911 911 const BSString &str); 912 BSUString(BSUniCodec *pCodec, 913 const char *psz); 912 914 913 915 /******************************************** -
trunk/src/cppbase/bs_string.cpp
r421 r449 366 366 367 367 /* 368 *@@ append CP:368 *@@ appendUtf8: 369 369 * assigns the given UTF-8 BSUString to this, 370 370 * using the specified BSUniCodec for conversion -
trunk/src/cppbase/bs_string_conv.cpp
r370 r449 48 48 #pragma hdrstop 49 49 50 #define CP_UTF8 1208 50 #define CP_UTF8 1208 51 #define UNI_COPYRIGHT 0xA9 51 52 52 53 DEFINE_CLASS(BSUniCodec, BSRoot); … … 255 256 * 256 257 *@@changed WarpIN V1.0.18 (2008-09-24) [pr]: added codepage 1208 support @@fixes 1127 258 *@@changed WarpIN V1.0.25 (2020-09-05) [pr]: added copyright symbol substitution 257 259 */ 258 260 … … 282 284 { 283 285 if (us == 0xFFFF) 284 us = '?'; 286 if (ulUni == UNI_COPYRIGHT) 287 { 288 xstrcat(&xstrNew, "(C)", 3); 289 continue; 290 } 291 else 292 us = '?'; 285 293 else if (_fDouble) 286 294 { -
trunk/src/cppbase/bs_string_uni.cpp
r254 r449 9 9 10 10 /* 11 * This file Copyright (C) 20 02Ulrich Mller.11 * This file Copyright (C) 2020 Ulrich Mller. 12 12 * This program is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU General Public License as published by … … 104 104 105 105 /* 106 *@@ BSUString: 107 * copy constructor to convert from a 108 * codepaged C string, using the 109 * specified BSUniCodec for conversion. 110 * 111 *@@added WarpIN V1.0.25 (2020-09-05) [pr] 112 */ 113 114 BSUString::BSUString(BSUniCodec *pCodec, 115 const char *psz) 116 : BSStringBase(tBSUString) 117 { 118 STRINGLOCK; 119 120 if (!pCodec) 121 throw BSExcptBase("pCodec is NULL."); 122 123 size_type st; 124 if (st = strlen(psz)) 125 { 126 pCodec->Codepage2Uni(*this, 127 psz, 128 st); 129 } 130 } 131 132 /* 106 133 *@@ operator[]: 107 134 * returns the ul'th character of the … … 235 262 FreeBuf(); 236 263 264 if (!pCodec) 265 throw BSExcptBase("pCodec is NULL."); 266 237 267 size_type st; 238 268 if (st = strlen(psz))
Note:
See TracChangeset
for help on using the changeset viewer.