1N/A parted - a frontend to libparted 1N/A Copyright (C) 1999-2001, 2007, 2009-2010 Free Software Foundation, 1N/A This program is free software; you can redistribute it and/or modify 1N/A it under the terms of the GNU General Public License as published by 1N/A the Free Software Foundation; either version 3 of the License, or 1N/A (at your option) any later version. 1N/A This program is distributed in the hope that it will be useful, 1N/A but WITHOUT ANY WARRANTY; without even the implied warranty of 1N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1N/A GNU General Public License for more details. 1N/A You should have received a copy of the GNU General Public License 1N/A#
endif /* !ENABLE_NLS */ 1N/A#
define MIN(a,b) ( (a<b)? a : b )
1N/A/* converts a string from the encoding in the gettext catalogues to wide 1N/A * character strings (of type wchar_t*). 1N/A#
else /* ENABLE_NLS */ 1N/A#
endif /* !ENABLE_NLS */ 1N/A#
else /* ENABLE_NLS */ 1N/A#
endif /* !ENABLE_NLS */ 1N/A void *p = (
char *) (
list->
str);
/* discard const */ 1N/A/* Japanese don't leave spaces between words, so ALL Japanese characters 1N/A * are treated as delimiters. Note: since the translations should already 1N/A * be properly formatted (eg: spaces after commas), there should be no 1N/A * need to include them. Best not to avoid side effects, like 3. 1N/A * FIXME: how do we exclude "." and "(" ? 1N/A * FIXME: glibc doesn't like umlaute. i.e. \"o (TeX notation), which should 1N/A/* NOTE: this should not return '\n' as a space, because explicit '\n' may 1N/A * be placed inside strings. 1N/A /* we can have a space "over", but not a comma */ 1N/A /* str [cut_left] is either the end of a word, or a 1N/A * Japanese character, or the start of a blank line. 1N/A/* returns: 2 for full match