/* Arabic joining group of Unicode characters.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011-2014 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2011.
This program is free software: you can redistribute it and/or modify it
char buf[MAX_WORD_LENGTH + 1];
const struct named_joining_group *found;
- /* Copy joining_group_name into buf, converting '_' to ' '. */
+ /* Copy joining_group_name into buf, converting '_' and '-' to ' '. */
{
const char *p = joining_group_name;
char *q = buf;
{
char c = *p;
- if (c == '_')
+ if (c == '_' || c == '-')
c = ' ';
*q = c;
if (c == '\0')