1 /* Sentence handling. 2 Copyright (C) 2015 Free Software Foundation, Inc. 3 Written by Daiki Ueno <ueno@gnu.org>, 2015. 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <https://www.gnu.org/licenses/>. */ 17 18 #ifndef _SENTENCE_H 19 #define _SENTENCE_H 20 21 #include "unitypes.h" 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /* The minimal number of white spaces which should follow after the 28 end of sentence. */ 29 extern DLL_VARIABLE int sentence_end_required_spaces; 30 31 /* Locate the position of a sentence end marker (a period, a question 32 mark, etc) in a null-terminated string STR. If there is no 33 sentence end marker found in STR, return a pointer to the null byte 34 at the end of STR. ENDING_CHARP is a return location of the end 35 marker character. */ 36 extern const char *sentence_end (const char *string, ucs4_t *ending_charp); 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif /* _SENTENCE_H */ 43