Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
7
Task/String-length/Emacs-Lisp/string-length-3.el
Normal file
7
Task/String-length/Emacs-Lisp/string-length-3.el
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(let ((str (apply 'string
|
||||
(mapcar (lambda (c) (decode-char 'ucs c))
|
||||
'(#x1112 #x1161 #x11ab #x1100 #x1173 #x11af)))))
|
||||
(list (length str)
|
||||
(string-bytes str)
|
||||
(string-width str)))
|
||||
;; => (6 18 4) ;; in emacs 23 up
|
||||
Loading…
Add table
Add a link
Reference in a new issue