diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 11:36:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 11:36:32 +0400 |
commit | 81d8f17843f92c6d6abbacb652ca22917910f4bc (patch) | |
tree | eb6f5f38f6f38a863c76383d92eeb40f11679dbf /source/blender/blenlib/intern/string_utf8.c | |
parent | 29806d3bcf0d17eaced1f3b524a7a81cdeebc495 (diff) |
style cleanup: pep8, indentation
Diffstat (limited to 'source/blender/blenlib/intern/string_utf8.c')
-rw-r--r-- | source/blender/blenlib/intern/string_utf8.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c index 6f181c1ee6e..aede08be7f9 100644 --- a/source/blender/blenlib/intern/string_utf8.c +++ b/source/blender/blenlib/intern/string_utf8.c @@ -359,16 +359,16 @@ int BLI_str_utf8_size(const char *p) **/ unsigned int BLI_str_utf8_as_unicode(const char *p) { - int i, mask = 0, len; - unsigned int result; - unsigned char c = (unsigned char) *p; + int i, mask = 0, len; + unsigned int result; + unsigned char c = (unsigned char) *p; - UTF8_COMPUTE (c, mask, len); - if (len == -1) - return BLI_UTF8_ERR; - UTF8_GET (result, p, i, mask, len, BLI_UTF8_ERR); + UTF8_COMPUTE (c, mask, len); + if (len == -1) + return BLI_UTF8_ERR; + UTF8_GET (result, p, i, mask, len, BLI_UTF8_ERR); - return result; + return result; } /* variant that increments the length */ |