Function: japanese-hankaku
japanese-hankaku is an autoloaded and byte-compiled function defined
in japan-util.el.gz.
Signature
(japanese-hankaku OBJ &optional ASCII-ONLY)
Documentation
Convert argument to hankaku and return that.
The argument may be a character or string. The result has the same type. The argument object is not altered--the value is a copy. Optional argument ASCII-ONLY non-nil means to return only ASCII character.
Source Code
;; Defined in /usr/src/emacs/lisp/language/japan-util.el.gz
;;;###autoload
(defun japanese-hankaku (obj &optional ascii-only)
"Convert argument to `hankaku' and return that.
The argument may be a character or string. The result has the same type.
The argument object is not altered--the value is a copy.
Optional argument ASCII-ONLY non-nil means to return only ASCII character."
(if (stringp obj)
(japanese-string-conversion obj 'japanese-hankaku-region ascii-only)
(or (and (not ascii-only)
(get-char-code-property obj 'jisx0201))
(get-char-code-property obj 'ascii)
obj)))