precompose_utf8: make precompose_string_if_needed() public
authorTorsten Bögershausen <tboegi@web.de>
Sun, 4 Apr 2021 06:17:45 +0000 (08:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Apr 2021 00:30:04 +0000 (17:30 -0700)
commit5020774aef3fc80c89fac2e04d4ed0aeac66cdf0
tree336ed5ed60f186a2bf918bc810f445c92cae3c2d
parent5c327502dbf7a27c8784c20037851206a87857c1
precompose_utf8: make precompose_string_if_needed() public

commit 5c327502 (MacOS: precompose_argv_prefix(), 2021-02-03) uses
the function precompose_string_if_needed() internally.  It is only
used from precompose_argv_prefix() and therefore static in
compat/precompose_utf8.c

Expose this function, it will be used in the next commit.

While there, allow passing a NULL pointer, which will return NULL.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/precompose_utf8.c
compat/precompose_utf8.h
git-compat-util.h