Browse Source

Move isspace2 from compiledict.c to translate.c.

master
Reece H. Dunn 7 years ago
parent
commit
54e87adbb8
3 changed files with 11 additions and 11 deletions
  1. 0
    10
      src/libespeak-ng/compiledict.c
  2. 10
    0
      src/libespeak-ng/translate.c
  3. 1
    1
      src/libespeak-ng/translate.h

+ 0
- 10
src/libespeak-ng/compiledict.c View File

int group3_ix; int group3_ix;
} RGROUP; } RGROUP;


int isspace2(unsigned int c)
{
// can't use isspace() because on Windows, isspace(0xe1) gives TRUE !
int c2;

if (((c2 = (c & 0xff)) == 0) || (c > ' '))
return 0;
return 1;
}

void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len) void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len)
{ {
int stress; int stress;

+ 10
- 0
src/libespeak-ng/translate.c View File

return iswspace(c); return iswspace(c);
} }


int isspace2(unsigned int c)
{
// can't use isspace() because on Windows, isspace(0xe1) gives TRUE !
int c2;

if (((c2 = (c & 0xff)) == 0) || (c > ' '))
return 0;
return 1;
}

void DeleteTranslator(Translator *tr) void DeleteTranslator(Translator *tr)
{ {
if (tr->data_dictlist != NULL) if (tr->data_dictlist != NULL)

+ 1
- 1
src/libespeak-ng/translate.h View File

/* /*
* Copyright (C) 2005 to 2014 by Jonathan Duddington * Copyright (C) 2005 to 2014 by Jonathan Duddington
* email: [email protected] * email: [email protected]
* Copyright (C) 2015 Reece H. Dunn
* Copyright (C) 2015-2017 Reece H. Dunn
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

Loading…
Cancel
Save