Apparently Python has a very specific meaning for 'words' in .title()
This commit is contained in:
parent
e93ff9c9c3
commit
8890f62d58
@ -836,7 +836,7 @@ KRK_METHOD(str,title, {
|
||||
lastWasWhitespace = 0;
|
||||
} else {
|
||||
pushStringBuilder(&sb, self->chars[i]);
|
||||
lastWasWhitespace = isWhitespace(self->chars[i]);
|
||||
lastWasWhitespace = !((self->chars[i] >= 'A' && self->chars[i] <= 'Z') || (self->chars[i] >= 'a' && self->chars[i] <= 'z'));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user