static void Copycstostring(StringBuilder str, Charstruct s, int level)
{
/* s is a shaped charstruct; i is the index into the string */
if (s.basechar == 0)
return;
str.Append(s.basechar);
s.lignum--;
if (s.mark1 != 0) {
if ((level & ar_novowel) == 0) {
str.Append(s.mark1);
s.lignum--;
}
else {
s.lignum--;
}
}
if (s.vowel != 0) {
if ((level & ar_novowel) == 0) {
str.Append(s.vowel);
s.lignum--;
}
else { /* vowel elimination */
s.lignum--;
}
}
}