Debian Codegraph @

debian/patches/out/no-copy-from-icu.patch

raw symbols SCIP
1 Descriptionscip-debian debian firebird3.0 3.0.14.ds7-1 `firebird3.0`/patches/`out/no-copy-from-icu.patch`#Description.: Link isql with ICU instead of embedding part of it in the source
2 Authorscip-debian debian firebird3.0 3.0.14.ds7-1 `firebird3.0`/patches/`out/no-copy-from-icu.patch`#Author.: Damyan Ivanov <[email protected]scip-debian . . . identity/`[email protected]`.>
3
4 --- a/src/common/utils_proto.hscip-debian debian firebird3.0 3.0.14.ds7-1 `firebird3.0`/upstream/`src/common/utils_proto.h`:
5 +++ b/src/common/utils_proto.hscip-debian debian firebird3.0 3.0.14.ds7-1 `firebird3.0`/upstream/`src/common/utils_proto.h`:
6 @@ -34,28 +34,15 @@
7 #include "../common/classes/array.h"
8 #include "gen/iberror.h"
9 #include "firebird/Interface.h"
10 +#include <unicode/utf8.h>
11
12 #ifdef SFIO
13 #include <stdio.h>
14 #endif
15
16 -// This macro is copied from ICU 68.2 to avoid need in utf8_countTrailBytes[] array
17 +// This macro is available in ICU
18
19 -#define FB_U8_NEXT_UNSAFE(s, i, c) do { \
20 - (c)=(uint8_t)(s)[(i)++]; \
21 - if(((c)&0x80)!=0) { \
22 - if((c)<0xe0) { \
23 - (c)=(((c)&0x1f)<<6)|((s)[(i)++]&0x3f); \
24 - } else if((c)<0xf0) { \
25 - /* no need for (c&0xf) because the upper bits are truncated after <<12 in the cast to (UChar) */ \
26 - (c)=(UChar)(((c)<<12)|(((s)[i]&0x3f)<<6)|((s)[(i)+1]&0x3f)); \
27 - (i)+=2; \
28 - } else { \
29 - (c)=(((c)&7)<<18)|(((s)[i]&0x3f)<<12)|(((s)[(i)+1]&0x3f)<<6)|((s)[(i)+2]&0x3f); \
30 - (i)+=3; \
31 - } \
32 - } \
33 -} while (false)
34 +#define FB_U8_NEXT_UNSAFE(s, i, c) U8_NEXT_UNSAFE(s, i, c)
35
36
37 namespace fb_utils