Jonas Maebe
|
834026bfb5
* synchronised with trunk up to r21067
|
13 years ago |
paul
|
19d1cf9470
rtl: reduce amount of warnings regards implicit string conversions + little formatting
|
13 years ago |
Jonas Maebe
|
aee5380ae0
* merged trunk up to r20882
|
13 years ago |
sergei
|
180686e429
* Removed 'first' field and 'packed' attribute from TAnsiRec and TUnicodeRec. Removing 'packed' should yield more efficient code on alignment-sensitive targets, while removing 'first' effectively makes two records identical to each other. Further cleanup is possible, but let's see the test suite results before proceeding.
|
13 years ago |
sergei
|
a1cb87bcf8
* Improved ucs4 to utf16 conversions: removed function call on every character and multiple memory allocations, made as much code as possible shared between WideString and UnicodeString versions.
|
13 years ago |
sergei
|
e94508d5eb
* Improved utf16 to ucs4 conversion routines: removed function call on every character, allocate memory once and made as much as possible code shared between WideString and UnicodeString versions.
|
13 years ago |
sergei
|
8dab34b31a
* fpc_char_to_unicodestr: call widestringmanager directly instead of nested char_to_uchar conversion.
|
13 years ago |
sergei
|
f07d02b427
- Removed string conversion helpers that are not actually used by compiler code generation (duplicated pwidechar/punicodechar stuff).
|
13 years ago |
sergei
|
8d26b3358f
RTL, wide/unicode strings cleanup:
|
13 years ago |
sergei
|
7ff76caa73
* Removed 'inline' attribute from 6 overloaded pos() functions which contain a managed typecast. Inlining it leads to noticeable increase in code size without any sensible speed improvement.
|
13 years ago |
sergei
|
06192a8137
Values of managed variables are never ever used after decrementing reference on the variable, so there is no point of having a 'decrement reference' as a separate operation. We can always do 'finalize', i.e. clear the contents after decref.
|
13 years ago |
sergei
|
009ee271ec
- Cleaned out STR_CONCAT_PROCS define
|
13 years ago |
sergei
|
724f41a9af
- Cleaned out FPC_STRTOSHORTSTRPROC and FPC_STRTOCHARARRAYPROC defines. Somebody had to do it one day.
|
13 years ago |
paul
|
270fb09e87
rtl: add WideStringManager.GetStandardCodePageProc method to retrieve system ansi and console code pages
|
14 years ago |
paul
|
c1866d5c17
compiler:
|
14 years ago |
sergei
|
018fdaf839
- Removed unnecessary operations: SetLength before widestringmanager calls (widestringmanager does the allocation) and zero-termination after SetLength (SetLength does zero-termination).
|
14 years ago |
paul
|
836889fc64
rtl: move some CP_xxx constants from syswin into systemh for generic use, redeclare UTF8Sting, RawByteString using constant identifiers instead of pure numbers. replace comparison with $ffff codepage to CP_NONE
|
14 years ago |
paul
|
6384fa2a19
rtl: revert r19330. We probably need to create a separate encoding<->codepage table.
|
14 years ago |
paul
|
a0e7196ae9
rtl: move winiconv.inc into general inc directory and rename it to wincodepages.inc, also rename win2iconv, iconv2win to CodePageToCodePageName, CodePageNameToCodePage.
|
14 years ago |
florian
|
d7f7a9bb76
* patch by Alexander Shishkin to clean up $ifopt usage by $push/$pop, resolves #20346
|
14 years ago |
Jonas Maebe
|
fadf8bf2a5
* fixed fpc_UnicodeStr_CheckRange() now that apparently the length in
|
14 years ago |
sergei
|
f2852137c8
* DisposeAnsiString doesn't need to exist as a separate procedure, because it is only called from a single place. Merging it into caller yields somewhat more efficient code.
|
14 years ago |
paul
|
fd5a15fda5
rtl: manual merge some cpstrnew changes which was impossible to merge using regular tools due to the merge conflicts
|
14 years ago |
paul
|
631c545423
merge r19075 from cpstrnew branch by paul:
|
14 years ago |
paul
|
5ac95bc27a
merge r17607 from cpstrnew branch by inoussa:
|
14 years ago |
paul
|
005795495d
merge r17552 from cpstrnew branch by inoussa:
|
14 years ago |
paul
|
f8b5920f31
merge r17438 from cpstrnew branch by michael:
|
14 years ago |
paul
|
1db610ecbd
merge r17434 from cpstrnew branch by michael:
|
14 years ago |
paul
|
7fd7eee1c9
merge r17330 from cpstrnew branch by michael:
|
14 years ago |
paul
|
091627883f
merge r14347 from cpstrnew branch by florian:
|
14 years ago |