/**
 * Convert string into zenkaku.
 * @function lib.string.toZenkaku
 * @param {string} str - String to convert.
 * @returns {string} Zenkaku string.
 */
var _patterns = require('./_patterns');

module.exports = function (str) {
    return str && str.replace(_patterns.HANKAKU, function ($0) {
        return String.fromCharCode($0.charCodeAt(0) + 0xFEE0);
    });
};