MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_dngettext

Function xo_dngettext

tools/libxo/libxo/libxo.c:3112–3129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3110}
3111
3112static inline const char *
3113xo_dngettext (xo_handle_t *xop, const char *sing, const char *plural,
3114 unsigned long int n)
3115{
3116 const char *domainname = xop->xo_gt_domain;
3117 const char *res;
3118
3119 res = dngettext(domainname, sing, plural, n);
3120 if (XOF_ISSET(xop, XOF_LOG_GETTEXT))
3121 fprintf(stderr, "xo: gettext: %s%s%s"
3122 "msgid \"%s\", msgid_plural \"%s\" (%lu) returns \"%s\"\n",
3123 domainname ? "domain \"" : "",
3124 xo_printable(domainname), domainname ? "\", " : "",
3125 xo_printable(sing),
3126 xo_printable(plural), n, xo_printable(res));
3127
3128 return res;
3129}
3130#else /* HAVE_GETTEXT */
3131static inline const char *
3132xo_dgettext (xo_handle_t *xop UNUSED, const char *str)

Callers 1

xo_format_gettextFunction · 0.85

Calls 1

xo_printableFunction · 0.85

Tested by

no test coverage detected