platform/upstream/libHarfBuzzSharp.git
5 years ago[map] Add .values() iterator
Behdad Esfahbod [Wed, 8 May 2019 22:08:10 +0000 (15:08 -0700)]
[map] Add .values() iterator

5 years ago[map] Fix iter
Behdad Esfahbod [Wed, 8 May 2019 22:05:10 +0000 (15:05 -0700)]
[map] Fix iter

5 years ago[algs] Fix identity return type
Behdad Esfahbod [Wed, 8 May 2019 21:59:25 +0000 (14:59 -0700)]
[algs] Fix identity return type

5 years agoWhitespace
Behdad Esfahbod [Wed, 8 May 2019 21:46:55 +0000 (14:46 -0700)]
Whitespace

5 years ago[meta] Capture rvalue-references in is_reference / remove_reference
Behdad Esfahbod [Wed, 8 May 2019 21:44:11 +0000 (14:44 -0700)]
[meta] Capture rvalue-references in is_reference / remove_reference

5 years agoMinor
Behdad Esfahbod [Wed, 8 May 2019 21:24:57 +0000 (14:24 -0700)]
Minor

5 years ago[map] tweak test-iter.cc
rsheeter [Wed, 8 May 2019 20:51:11 +0000 (13:51 -0700)]
[map] tweak test-iter.cc

5 years ago[map] add keys()
rsheeter [Wed, 8 May 2019 19:47:18 +0000 (12:47 -0700)]
[map] add keys()

5 years ago[map] add a test for iteration
rsheeter [Wed, 8 May 2019 19:09:10 +0000 (12:09 -0700)]
[map] add a test for iteration

5 years ago[map] add iteration
rsheeter [Wed, 8 May 2019 18:40:31 +0000 (11:40 -0700)]
[map] add iteration

5 years ago[test] Add https://crbug.com/oss-fuzz/14641 testcase
Ebrahim Byagowi [Wed, 8 May 2019 21:17:14 +0000 (14:17 -0700)]
[test] Add https://crbug.com/oss-fuzz/14641 testcase

As 503748d fix

5 years agoinitialize return param subr_num in popSubrNum
Michiharu Ariza [Wed, 8 May 2019 20:44:03 +0000 (13:44 -0700)]
initialize return param subr_num in popSubrNum

also snake_cased popSubrtNum and other surrounding function names

5 years ago[name] Sanitize records for reals
Behdad Esfahbod [Wed, 8 May 2019 19:45:02 +0000 (12:45 -0700)]
[name] Sanitize records for reals

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14641

5 years ago[iter] Rename hb_iter_t() to hb_iter_type<> and add hb_item_type<>
Behdad Esfahbod [Wed, 8 May 2019 19:25:34 +0000 (12:25 -0700)]
[iter] Rename hb_iter_t() to hb_iter_type<> and add hb_item_type<>

5 years ago[map] Make .has() optionally return value
Behdad Esfahbod [Wed, 8 May 2019 19:11:52 +0000 (12:11 -0700)]
[map] Make .has() optionally return value

5 years agoMake compiler happy with -Og
Behdad Esfahbod [Wed, 8 May 2019 19:01:55 +0000 (12:01 -0700)]
Make compiler happy with -Og

5 years ago[iter] Accept pointer in hb_iter() and hb_iter_t()
Behdad Esfahbod [Wed, 8 May 2019 18:00:18 +0000 (11:00 -0700)]
[iter] Accept pointer in hb_iter() and hb_iter_t()

5 years ago[iter] Accept pointer in hb_map()
Behdad Esfahbod [Wed, 8 May 2019 17:56:09 +0000 (10:56 -0700)]
[iter] Accept pointer in hb_map()

5 years ago[serialize] LangSys subset->copy
Behdad Esfahbod [Wed, 8 May 2019 17:40:39 +0000 (10:40 -0700)]
[serialize] LangSys subset->copy

5 years agoAdd hb_iota()
Behdad Esfahbod [Wed, 8 May 2019 17:35:02 +0000 (10:35 -0700)]
Add hb_iota()

5 years ago[iter] Actually fix previous commit
Behdad Esfahbod [Wed, 8 May 2019 17:02:30 +0000 (10:02 -0700)]
[iter] Actually fix previous commit

The iter objects shouldn't not be const.  D'oh.

5 years ago[iter] For ref-qualified variants
Behdad Esfahbod [Wed, 8 May 2019 16:56:29 +0000 (09:56 -0700)]
[iter] For ref-qualified variants

5 years agoUpdate README.md
rsheeter [Wed, 8 May 2019 16:53:58 +0000 (09:53 -0700)]
Update README.md

5 years agoUpdate README.md
rsheeter [Wed, 8 May 2019 16:53:29 +0000 (09:53 -0700)]
Update README.md

5 years ago[docs] add fuzzer instructions (courtesy of Garret)
rsheeter [Wed, 8 May 2019 16:47:34 +0000 (09:47 -0700)]
[docs] add fuzzer instructions (courtesy of Garret)

5 years ago[docs] add sample commands for test exec
Roderick Sheeter [Wed, 8 May 2019 16:42:35 +0000 (09:42 -0700)]
[docs] add sample commands for test exec

5 years ago[iter] Fix hb_sink() to accept rvalue
Behdad Esfahbod [Wed, 8 May 2019 16:48:55 +0000 (09:48 -0700)]
[iter] Fix hb_sink() to accept rvalue

5 years ago[iter] Default predicates to hb_identity instead of hb_bool
Behdad Esfahbod [Wed, 8 May 2019 16:33:09 +0000 (09:33 -0700)]
[iter] Default predicates to hb_identity instead of hb_bool

The bool conversion happens after predicate is called automatically.

5 years agoAdjust hb_all/any/none
Behdad Esfahbod [Wed, 8 May 2019 16:32:19 +0000 (09:32 -0700)]
Adjust hb_all/any/none

5 years agoAdd hb_match
Behdad Esfahbod [Wed, 8 May 2019 16:16:33 +0000 (09:16 -0700)]
Add hb_match

5 years ago[algs] Try f[v] in hb_get() as last resort
Behdad Esfahbod [Wed, 8 May 2019 16:14:44 +0000 (09:14 -0700)]
[algs] Try f[v] in hb_get() as last resort

5 years agoFix a few more double-pomotion errors
Behdad Esfahbod [Wed, 8 May 2019 14:47:36 +0000 (07:47 -0700)]
Fix a few more double-pomotion errors

5 years agoFix signed comparison on 32bit
Behdad Esfahbod [Wed, 8 May 2019 06:28:22 +0000 (23:28 -0700)]
Fix signed comparison on 32bit

5 years agoFix more double-promotion errors
Behdad Esfahbod [Wed, 8 May 2019 06:26:09 +0000 (23:26 -0700)]
Fix more double-promotion errors

WHy do only some of the clang bots catch this I have no idea :(.

5 years agoFix double-promotion warnings
Behdad Esfahbod [Wed, 8 May 2019 06:13:38 +0000 (23:13 -0700)]
Fix double-promotion warnings

Make it an error.

5 years agoMore tests
Behdad Esfahbod [Wed, 8 May 2019 06:10:59 +0000 (23:10 -0700)]
More tests

5 years ago[algs] Sprinkle hb_min/max with hb-forward salad
Behdad Esfahbod [Wed, 8 May 2019 06:08:49 +0000 (23:08 -0700)]
[algs] Sprinkle hb_min/max with hb-forward salad

Let's see if fixes MSVC fail.  Though, the error doesn't make sense to me.

  hb-blob.cc
c:\projects\harfbuzz\src\hb-algs.hh(166): error C2440: 'return': cannot convert from 'unsigned int' to 'unsigned int &&' [C:\projects\harfbuzz\build\harfbuzz.vcxproj]
  c:\projects\harfbuzz\src\hb-algs.hh(166): note: You cannot bind an lvalue to an rvalue reference
  c:\projects\harfbuzz\src\hb-algs.hh(174): note: see reference to function template instantiation 'T &&<unnamed-type-hb_min>::impl<T,unsigned int&>(T &&,T2) const' being compiled
          with
          [
              T=unsigned int,
              T2=unsigned int &
          ]

5 years ago[iter] Add value and projection to hb_all/any/none
Behdad Esfahbod [Wed, 8 May 2019 05:52:43 +0000 (22:52 -0700)]
[iter] Add value and projection to hb_all/any/none

Allows for eg, checking all values equal 2: hb_all (it, 2).

5 years ago[iter] Accept rvalues to hb_enumerate()
Behdad Esfahbod [Wed, 8 May 2019 05:45:01 +0000 (22:45 -0700)]
[iter] Accept rvalues to hb_enumerate()

5 years ago[meta] Move hb_invoke from algs to meta
Behdad Esfahbod [Wed, 8 May 2019 05:29:40 +0000 (22:29 -0700)]
[meta] Move hb_invoke from algs to meta

5 years ago[meta] Replace most hb_enable_if with hb_requires
Behdad Esfahbod [Wed, 8 May 2019 04:39:20 +0000 (21:39 -0700)]
[meta] Replace most hb_enable_if with hb_requires

They do absolutely same thing.  hb_requires is to encode constraints,
whereas hb_enable_if is for more conditional enabling.

5 years ago[algs] Accept varargs in hb_min/max
Behdad Esfahbod [Wed, 8 May 2019 04:33:26 +0000 (21:33 -0700)]
[algs] Accept varargs in hb_min/max

5 years agoRename
Behdad Esfahbod [Wed, 8 May 2019 04:00:23 +0000 (21:00 -0700)]
Rename

5 years agoWhitespace
Behdad Esfahbod [Wed, 8 May 2019 03:58:43 +0000 (20:58 -0700)]
Whitespace

5 years agoUse universal references in hb_min/max
Behdad Esfahbod [Wed, 8 May 2019 03:55:33 +0000 (20:55 -0700)]
Use universal references in hb_min/max

5 years agoRemove MIN/MAX in favor of hb_min/hb_max
Behdad Esfahbod [Wed, 8 May 2019 03:54:31 +0000 (20:54 -0700)]
Remove MIN/MAX in favor of hb_min/hb_max

5 years ago[serializer] Accept pointer & reference in more methods
Behdad Esfahbod [Wed, 8 May 2019 00:23:46 +0000 (17:23 -0700)]
[serializer] Accept pointer & reference in more methods

5 years ago[serializer] Minor
Behdad Esfahbod [Wed, 8 May 2019 00:21:27 +0000 (17:21 -0700)]
[serializer] Minor

5 years ago[meta] Fix addressof()
Behdad Esfahbod [Wed, 8 May 2019 00:21:18 +0000 (17:21 -0700)]
[meta] Fix addressof()

5 years agoWhitespace
Behdad Esfahbod [Tue, 7 May 2019 23:53:03 +0000 (16:53 -0700)]
Whitespace

5 years agoAdd comment
Behdad Esfahbod [Tue, 7 May 2019 22:56:51 +0000 (15:56 -0700)]
Add comment

5 years ago[serialize] FeatureVariations subset->copy
Behdad Esfahbod [Tue, 7 May 2019 22:46:24 +0000 (15:46 -0700)]
[serialize] FeatureVariations subset->copy

5 years agoMinor
Behdad Esfahbod [Tue, 7 May 2019 21:26:03 +0000 (14:26 -0700)]
Minor

5 years ago[iter] Require lvalue in operators that return reference
Behdad Esfahbod [Tue, 7 May 2019 21:09:00 +0000 (14:09 -0700)]
[iter] Require lvalue in operators that return reference

5 years agoMinor
Behdad Esfahbod [Tue, 7 May 2019 20:45:48 +0000 (13:45 -0700)]
Minor

5 years ago[name] Clean up some more
Behdad Esfahbod [Tue, 7 May 2019 20:37:43 +0000 (13:37 -0700)]
[name] Clean up some more

5 years ago[name] Clean up serialize() API
Behdad Esfahbod [Tue, 7 May 2019 20:29:01 +0000 (13:29 -0700)]
[name] Clean up serialize() API

5 years ago[name] Use iterators more
Behdad Esfahbod [Tue, 7 May 2019 20:26:15 +0000 (13:26 -0700)]
[name] Use iterators more

5 years ago[serialize] Minor
Behdad Esfahbod [Tue, 7 May 2019 19:45:38 +0000 (12:45 -0700)]
[serialize] Minor

5 years agoFix signed-comparison error on 32bit
Behdad Esfahbod [Tue, 7 May 2019 18:51:10 +0000 (11:51 -0700)]
Fix signed-comparison error on 32bit

5 years agoComment
Behdad Esfahbod [Tue, 7 May 2019 18:47:02 +0000 (11:47 -0700)]
Comment

5 years ago[doc] Make header search more resilient
Behdad Esfahbod [Tue, 7 May 2019 18:46:11 +0000 (11:46 -0700)]
[doc] Make header search more resilient

How stupid to scan all files... Sigh.

5 years ago[ragel] Regenerate ragel-generated files using ragel 7.0.0.11 May 2018
Behdad Esfahbod [Tue, 7 May 2019 18:39:44 +0000 (11:39 -0700)]
[ragel] Regenerate ragel-generated files using ragel 7.0.0.11 May 2018

5 years ago[subset] Add TODO
Behdad Esfahbod [Tue, 7 May 2019 18:08:08 +0000 (11:08 -0700)]
[subset] Add TODO

5 years ago[serialize] Enable bias assertion
Behdad Esfahbod [Tue, 7 May 2019 18:06:43 +0000 (11:06 -0700)]
[serialize] Enable bias assertion

5 years ago[serialize] Use range-based loop
Behdad Esfahbod [Tue, 7 May 2019 18:05:51 +0000 (11:05 -0700)]
[serialize] Use range-based loop

5 years ago[name] Remove dead code
Behdad Esfahbod [Tue, 7 May 2019 18:01:02 +0000 (11:01 -0700)]
[name] Remove dead code

5 years ago[subset] fix for name table serializing with new serializer machinery
Behdad Esfahbod [Thu, 2 May 2019 23:29:07 +0000 (16:29 -0700)]
[subset] fix for name table serializing with new serializer machinery

5 years ago[WIP] [name] Port to fancy serializer machinery
Behdad Esfahbod [Thu, 2 May 2019 23:29:07 +0000 (16:29 -0700)]
[WIP] [name] Port to fancy serializer machinery

5 years agoRemove use of deprecated implicit copy/move assignment operators
Behdad Esfahbod [Tue, 7 May 2019 07:34:50 +0000 (00:34 -0700)]
Remove use of deprecated implicit copy/move assignment operators

By removing custom copy constructor.

5 years agoWarn on -Wdeprecated
Behdad Esfahbod [Tue, 7 May 2019 07:33:32 +0000 (00:33 -0700)]
Warn on -Wdeprecated

5 years ago[ci] Upgrade Ubuntu 17.10 bots to 19.04
Ebrahim Byagowi [Tue, 7 May 2019 07:34:00 +0000 (12:04 +0430)]
[ci] Upgrade Ubuntu 17.10 bots to 19.04

5 years agoActually make it work
Behdad Esfahbod [Tue, 7 May 2019 07:13:11 +0000 (00:13 -0700)]
Actually make it work

5 years ago[iter] Make filter/map copyable
Behdad Esfahbod [Tue, 7 May 2019 07:05:37 +0000 (00:05 -0700)]
[iter] Make filter/map copyable

5 years ago[meta] Add hb_reference_wrapper<>
Behdad Esfahbod [Tue, 7 May 2019 07:03:35 +0000 (00:03 -0700)]
[meta] Add hb_reference_wrapper<>

Functionality kinda superset of std:: counterpart.

5 years agoWhitespace
Behdad Esfahbod [Tue, 7 May 2019 06:39:26 +0000 (23:39 -0700)]
Whitespace

5 years agoAdd hb_ref()
Behdad Esfahbod [Tue, 7 May 2019 06:39:13 +0000 (23:39 -0700)]
Add hb_ref()

Unused.

5 years agoRename hb_deref_pointer() to hb_deref()
Behdad Esfahbod [Tue, 7 May 2019 06:17:39 +0000 (23:17 -0700)]
Rename hb_deref_pointer() to hb_deref()

5 years ago[iter] Adjust hb_filter
Behdad Esfahbod [Tue, 7 May 2019 06:04:32 +0000 (23:04 -0700)]
[iter] Adjust hb_filter

5 years ago[iter] Implement range-based for loops
Behdad Esfahbod [Tue, 7 May 2019 02:57:15 +0000 (19:57 -0700)]
[iter] Implement range-based for loops

Part of https://github.com/harfbuzz/harfbuzz/issues/1648

5 years agoIgnore -Wc++11-compat as we require C++11 actually
Ebrahim Byagowi [Mon, 6 May 2019 20:54:55 +0000 (01:24 +0430)]
Ignore -Wc++11-compat as we require C++11 actually

pollutes gcc bots logs https://circleci.com/gh/harfbuzz/harfbuzz/85395

5 years agoRemove HB_NO_OPTIONS in favor of HB_NO_GETENV
Behdad Esfahbod [Mon, 6 May 2019 19:16:51 +0000 (12:16 -0700)]
Remove HB_NO_OPTIONS in favor of HB_NO_GETENV

Part of https://github.com/harfbuzz/harfbuzz/issues/1652

5 years ago[dispatch] Forward arguments in all dispatch multiplexers
Behdad Esfahbod [Sun, 5 May 2019 17:14:17 +0000 (10:14 -0700)]
[dispatch] Forward arguments in all dispatch multiplexers

5 years agoFix previous commit
Behdad Esfahbod [Sun, 5 May 2019 16:54:58 +0000 (09:54 -0700)]
Fix previous commit

Priority should be given to specific over dispatch.  Broke sanitize before.
This fixes it, by moving prioritization to the context implementation, since
the correct priority cannot be done in the dispatch implementation.  Done
for subset and sanitize only, which need it.

5 years ago[dispatch] Use functionality from previous commit
Behdad Esfahbod [Sun, 5 May 2019 16:23:35 +0000 (09:23 -0700)]
[dispatch] Use functionality from previous commit

To remove a couple of unwanted wrapper methods

5 years ago[dispatch] Try obj.dispatch(c) before trying c->dispatch(obj)
Behdad Esfahbod [Sun, 5 May 2019 16:10:46 +0000 (09:10 -0700)]
[dispatch] Try obj.dispatch(c) before trying c->dispatch(obj)

5 years agoRevert "[WIP] [name] Port to fancy serializer machinery"
Behdad Esfahbod [Fri, 3 May 2019 17:37:32 +0000 (10:37 -0700)]
Revert "[WIP] [name] Port to fancy serializer machinery"

This reverts commit c7f366fbbb208d0a9103ac4ee4ac00ff726c31e4.

Don't know how it got to master!

5 years agoAdd configuration option HB_NO_GETENV to disable use of getenv()
Cody Planteen [Thu, 2 May 2019 19:03:15 +0000 (13:03 -0600)]
Add configuration option HB_NO_GETENV to disable use of getenv()

5 years ago[WIP] [name] Port to fancy serializer machinery
Behdad Esfahbod [Thu, 2 May 2019 23:29:07 +0000 (16:29 -0700)]
[WIP] [name] Port to fancy serializer machinery

5 years ago[name] Add NameRecord::copy()
Behdad Esfahbod [Thu, 2 May 2019 23:26:06 +0000 (16:26 -0700)]
[name] Add NameRecord::copy()

5 years ago[name] Minor changes
Behdad Esfahbod [Thu, 2 May 2019 23:25:00 +0000 (16:25 -0700)]
[name] Minor changes

5 years ago[serialize] Disable assertion for now
Behdad Esfahbod [Thu, 2 May 2019 23:22:32 +0000 (16:22 -0700)]
[serialize] Disable assertion for now

5 years ago[serialize] Misc getting copy() to work
Behdad Esfahbod [Thu, 2 May 2019 23:20:18 +0000 (16:20 -0700)]
[serialize] Misc getting copy() to work

5 years ago[debug] Allow return_trace() to return any type
Behdad Esfahbod [Thu, 2 May 2019 23:20:03 +0000 (16:20 -0700)]
[debug] Allow return_trace() to return any type

5 years ago[test] Run "fonttools ttx" instead of "ttx"
Behdad Esfahbod [Thu, 2 May 2019 23:19:34 +0000 (16:19 -0700)]
[test] Run "fonttools ttx" instead of "ttx"

5 years ago[serialize] Check offset base is within (possibly end of) object
Behdad Esfahbod [Thu, 2 May 2019 22:12:07 +0000 (15:12 -0700)]
[serialize] Check offset base is within (possibly end of) object

5 years ago[name] Fix format of susbetted table to 0
Behdad Esfahbod [Thu, 2 May 2019 22:03:41 +0000 (15:03 -0700)]
[name] Fix format of susbetted table to 0

5 years ago[name] Use variable forwarding to simplify sanitize()
Behdad Esfahbod [Thu, 2 May 2019 21:45:57 +0000 (14:45 -0700)]
[name] Use variable forwarding to simplify sanitize()

5 years ago[name]
Behdad Esfahbod [Thu, 2 May 2019 21:42:37 +0000 (14:42 -0700)]
[name]

5 years ago[serializer] Add copy() to (Unsized)ArrayOf
Behdad Esfahbod [Thu, 2 May 2019 21:39:52 +0000 (14:39 -0700)]
[serializer] Add copy() to (Unsized)ArrayOf