Hi,

The function strcharpart() uses character index instead of byte index.
Therefore "one byte" should be "one character", I think.

--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -7256,7 +7256,7 @@ strcharpart({src}, {start}[, {len}])                      
*
                Like |strpart()| but using character index and length instead
                of byte index and length.
                When a character index is used where a character does not
-               exist it is assumed to be one byte.  For example: >
+               exist it is assumed to be one character.  For example: >
                        strcharpart('abc', -1, 2)
 <              results in 'a'.
 

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui