pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2013-11-17
2013-11-17 12:35:44 by Chris Angelico <rosuav@gmail.com>
3a059b9e90baa7d5d7a99ae7dcf56222e0ba0ccb (
7
lines) (+
3
/-
4
)
[
Show
|
Annotate
]
Branch:
8.0
Shorten/simplify the recording of string flags upper/lowercase
179:
if( s_max < 128 ) {
-
if(
upper &&
!lower )
+
if( !lower )
str->flags |= STRING_IS_UPPERCASE;
-
if(
lower &&
!upper )
+
if( !upper )
str->flags |= STRING_IS_LOWERCASE;
-
if( !lower && !upper )
-
str->flags |= STRING_IS_LOWERCASE|STRING_IS_UPPERCASE;
+
} } str->min = s_min;