Changeset - r8711:0519f78b68b9
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-03-19 20:46:56
peter1138@openttd.org
(svn r12385) -Fix [FS#ln]: Non-breaking spaces should not be broken.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/string_func.h
Show inline comments
 
@@ -142,7 +142,8 @@ static inline bool IsPrintable(WChar c)
 
}
 

	
 
/**
 
 * Check whether UNICODE character is whitespace or not
 
 * Check whether UNICODE character is whitespace or not, i.e. whether
 
 * this is a potential line-break character.
 
 * @param c UNICODE character to check
 
 * @return a boolean value whether 'c' is a whitespace character or not
 
 * @see http://www.fileformat.info/info/unicode/category/Zs/list.htm
 
@@ -151,7 +152,6 @@ static inline bool IsWhitespace(WChar c)
 
{
 
	return
 
	  c == 0x0020 /* SPACE */ ||
 
	  c == 0x00A0 /* NO-BREAK SPACE */ ||
 
	  c == 0x3000 /* IDEOGRAPHIC SPACE */
 
	;
 
}
0 comments (0 inline, 0 general)