xref: /PHP-8.3/ext/gettext/gettext.stub.php (revision 50f31829)
1<?php
2
3/** @generate-class-entries */
4
5/** @refcount 1 */
6function textdomain(?string $domain): string {}
7
8/** @refcount 1 */
9function gettext(string $message): string {}
10
11/** @alias gettext */
12function _(string $message): string {}
13
14/** @refcount 1 */
15function dgettext(string $domain, string $message): string {}
16
17/** @refcount 1 */
18function dcgettext(string $domain, string $message, int $category): string {}
19
20/** @refcount 1 */
21function bindtextdomain(string $domain, ?string $directory): string|false {}
22
23#ifdef HAVE_NGETTEXT
24/** @refcount 1 */
25function ngettext(string $singular, string $plural, int $count): string {}
26#endif
27
28#ifdef HAVE_DNGETTEXT
29/** @refcount 1 */
30function dngettext(string $domain, string $singular, string $plural, int $count): string {}
31#endif
32
33#ifdef HAVE_DCNGETTEXT
34/** @refcount 1 */
35function dcngettext(string $domain, string $singular, string $plural, int $count, int $category): string {}
36#endif
37
38#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
39/** @refcount 1 */
40function bind_textdomain_codeset(string $domain, ?string $codeset): string|false {}
41#endif
42