Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-27Cleanup: all params of BLI_str partition funcs can be const...Bastien Montagne
2015-06-27Extend `BLI_str_partition_ex`: add possibility to define a right limit to ↵Bastien Montagne
the string. Now you can define `end` pointer as right limit of the string (allows to easily search in substring, especially useful when searching from right).
2014-12-28BLI_string_utf8: add BLI_strncpy_utf8_rlenCampbell Barton
2014-07-04Add (r)partition funcs to BLI_string, to get left-most/right-most first ↵Bastien Montagne
occurence of delimiters. Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs. Reviewed by Campbell Barton, many thanks!
2013-09-01Move GCC attributes into a centraized definesSergey Sharybin
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review!
2013-07-23replace use of strcat() where the string offset is known.Campbell Barton
also correct bad logic with converting a textblock to 3d-text, bytes-vs-number of chars wasn't handled right.
2013-07-09fix [#36066] crash when Tab out text objectCampbell Barton
the way Curve.len is used at the moment is really stupid, calculate string size on save for now, but should really store the length in bytes and total number of characters.
2013-03-12Patch [#34373] Use i18n monospace font in Text editor and Python consoleIrie Shinsuke
This patch allows Blender to display i18n monospace font in the text editor and the Python interactive console. Wide characters that occupy multiple columns such as CJK characters can be displayed correctly. Furthermore, wrapping, selection, suggestion, cursor drawing, and syntax highlighting should work. Also fixes a bug [#34543]: In Text Editor false color in comment on cyrillic To estimate how many columns each character occupies, this patch uses wcwidth.c written by Markus Kuhn and distributed under MIT-style license: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c wcwidth.c is stored in extern/wcwidth and used as a static library. This patch adds new API to blenfont, blenlib and blenkernel: BLF_get_unifont_mono() BLF_free_unifont_mono() BLF_draw_mono() BLI_wcwidth() BLI_wcswidth() BLI_str_utf8_char_width() BLI_str_utf8_char_width_safe() txt_utf8_offset_to_column() txt_utf8_column_to_offset()
2013-02-19step over unicode characters with autocomplete (correctly this time).Campbell Barton
2012-11-09fix [#33121] crashing when srolling down in text editor !Campbell Barton
2012-10-27change BLI_strlen_range_utf8 to the more conventional BLI_strnlen_utf8Campbell Barton
2012-10-27style cleanupCampbell Barton
2012-10-26* New string property subtype: PASSWORDJiri Hnidek
When this new subtypes is used, then string of property is hidden using asterisks, e.g.: mysecretpassword -> **************** This code was reviewed and modified by Brecht. Thanks very much: - https://codereview.appspot.com/6713044/ This new subtype of string property is intended mostly for Add-on developers writing Add-on which communicates with some server (http, sql, ftp, verse, etc.). When this server requires user authentication and user has to type username and password, then current API didn't allow to type 'hidden' password, e.g. when you want to demonstrate this script, then everybody can see this security password. Some examples of Add-on which could use this new subtype: - On-line database of textures - Integration of render farm - Integration of Verse Security Notes: - You can copy paste hiddent string of property from text input using (Ctrl-C, Ctrl-V), but you can do this in other GUI toolkits too (this behavior it is widely used). - Text of string property is stored in plain text, but it is widely used in other GUI toolkits (Qt, Gtk, etc.). Simple examples: - https://dl.dropbox.com/u/369894/draw_op_passwd.py - https://dl.dropbox.com/u/369894/blender-password.png
2012-10-10use __restrict for string functions args so the compiler can assume they ↵Campbell Barton
dont overlap. also avoid comparing int/size_t in for loops.
2012-05-13code cleanup: header cleanup and remove some duplicate defines.Campbell Barton
2012-02-17unify include guard defines, __$FILENAME__Campbell Barton
without the underscores these clogged up the namespace for autocompleation which was annoying.
2011-11-21fix [#29337] Duplicate long shapekey names crash BlenderCampbell Barton
- added BLI_strncat_utf8. - ensure resulting strings are valid utf8.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23- fix for error with utf8 textinput for buttonsCampbell Barton
- ensure input is valid utf8 from ghost and NULL then complain if its not. - added function to get utf8 size BLI_str_utf8_size()
2011-10-21- minor edits to font drawing/utf8, was needlessly casting int/unsigned int.Campbell Barton
- also ifdef'd out more smoke function when the modifiers disabled.
2011-10-21replace own unicode functions with versions from glib which support more ↵Campbell Barton
unicode characters. added BLI_str_utf8_as_unicode(), BLI_str_utf8_from_unicode()
2011-10-20SVN maintenance.Guillermo S. Romero
2011-10-20unicode text input for 3d text.Campbell Barton
2011-10-20- add BLI_string_utf8.h for unicode functions.Campbell Barton
- move font.c unicode functions into string_utf8.c and rename to fit with other BLI_string funcs.