Skip to content

Commit dc17c6c

Browse files
authored
Migrate to pcre2 (HaxeFoundation#1037)
* Update pcre to pcre2-10.42 * Clean up * Use generic pcre2 files * Migrate regexp to pcre2 * Mark project/thirdparty as vendored * Separate pcre2-8 and pcre2-16 into two groups pcre2-8 and pcre2-16 can't be built together * See if linux prefers the files in this order * Fix regexp_matched error with unicode strings * Add test for mixed unicode regex matching See: HaxeFoundation/haxe#9500 * Fix length when converting utf16 regex to utf8 * Clean up whitespace in std tests * Add outByteLength param to String::wc_str() * Adjust parameter name It is the length in code units, not in bytes
1 parent 6966d65 commit dc17c6c

File tree

490 files changed

+173180
-268099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

490 files changed

+173180
-268099
lines changed

Diff for: .gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
project/thirdparty/*/** linguist-vendored

Diff for: include/hxString.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES String
166166
inline const char *c_str() const { return utf8_str(); }
167167
inline const char *out_str(hx::IStringAlloc *inBuffer = 0) const { return utf8_str(inBuffer,false); }
168168
const wchar_t *wchar_str(hx::IStringAlloc *inBuffer = 0) const;
169-
const char16_t *wc_str(hx::IStringAlloc *inBuffer = 0) const;
169+
const char16_t *wc_str(hx::IStringAlloc *inBuffer = 0, int *outCharLength = 0) const;
170170

171171
const char *__CStr() const { return utf8_str(); };
172172
const wchar_t *__WCStr() const { return wchar_str(0); }

Diff for: project/thirdparty/pcre-8.42/AUTHORS

-45
This file was deleted.

0 commit comments

Comments
 (0)