Converts a word array to a UTF-16 BE string.

@param {WordArray} wordArray The word array.

@return {string} The UTF-16 BE string.

@static

@example

var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
336713
function (wordArray) {
            // Shortcuts
            var words = wordArray.words;
            var sigBytes = wordArray.sigBytes;

            // Convert
            var utf16Chars = [];
            for (var i = 0; i < sigBytes; i += 2) {
                var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;
                utf16Chars.push(String.fromCharCode(codePoint));
            }

            return utf16Chars.join('');
        }
241892
function toUnicode(charCode) {
    var result = charCode.toString(16).toUpperCase();
    while (result.length < 4) result = '0' + result;
    return '\\u' + result;
}
360644
function (byteArray) {
            var result = "",
                len = byteArray.byteLength,
                i;

            for (i = 0; i < len; i += 1) {
                result += String.fromCharCode(byteArray[i]);
            }
            return result;
        }
374862
function blobToString (blob) {
  return blobUtil
    .blobToArrayBuffer(blob)
    .then(function (buffer) {
      return String.fromCharCode.apply(null, new Uint16Array(buffer))
    })
}
441961
function (arr) {
    var out = "", i;
    for (i=0; i<arr.length; i++) {
      out += ((arr[i]|0)+0xF00000000000).toString(16).substr(4);
    }
    return out.substr(0, sjcl.bitArray.bitLength(arr)/4);//.replace(/(.{8})/g, "$1 ");
  }
1151503
function arrayToString(array){
  var str = '';

  for (let i = 0; i < array.length; i++) {
    str += array[i];
  }

  return str;
}
636845
function (i) {
			if (i < 0xfd) {
				// unsigned char
				return [i];
			} else if (i <= 1 << 16) {
				// unsigned short (LE)
				return [0xfd, i >>> 8, i & 255];
			} else if (i <= 1 << 32) {
				// unsigned int (LE)
				return [0xfe].concat(Crypto.util.wordsToBytes([i]));
			} else {
				// unsigned long long (LE)
				return [0xff].concat(Crypto.util.wordsToBytes([i >>> 32, i]));
			}
		}
701204
function unicodeStringToTypedArray(s) {
    var escstr = encodeURIComponent(s);
    var binstr = escstr.replace(/%([0-9A-F]{2})/g, function(match, p1) {
        return String.fromCharCode('0x' + p1);
    });
    var ua = new Uint8Array(binstr.length);
    Array.prototype.forEach.call(binstr, function (ch, i) {
        ua[i] = ch.charCodeAt(0);
    });
    return ua;
}
655719
function (words, length) {
		words = words || this.exports.generate.integer(10, 52);
		var ret = this.exports.generate.word();
		for (var i = 0; i < words; ++i) {
			ret += ' ' + this.exports.generate.word();
			if (this.exports.generate.integer(0, 100) <= 10) {
				ret += '.';
			}
			else if (this.exports.generate.integer(0, 100) <= 20) {
				ret += ',';
			}
			if (ret.length + 10 >= length) {
				ret += ' ' + this.exports.generate.word((length - ret.length) - 2);
				break;
			}
		}
		ret += '.';
		return ret;
	}
663334
function wordCount(data) {
	var pattern = /[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g;
	var m = data.match(pattern);
	var count = 0;
	if(m === null) return count;
	for(var i = 0; i < m.length; i++) {
		if(m[i].charCodeAt(0) >= 0x4E00) {
			count += m[i].length;
		} else {
			count += 1;
		}
	}
	return count;
}
1197070
function (wordArray) {
            // Shortcuts
            var words = wordArray.words;
            var sigBytes = wordArray.sigBytes;

            // Convert
            var hexChars = [];
            for (var i = 0; i < sigBytes; i++) {
                var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
                hexChars.push((bite >>> 4).toString(16));
                hexChars.push((bite & 0x0f).toString(16));
            }

            return hexChars.join('');
        }
1286563
function string_to_words(string) {
	var words = [];
	for (var i = 0; i < string.length; i += 4) {
		words.push(string.charCodeAt(i) << 24 | string.charCodeAt(i + 1) << 16 | string.charCodeAt(i + 2) << 8 | string.charCodeAt(i + 3));
	}
	return words;
}
1021127
function typedArrayToUnicodeString(ua) {
    var binstr = Array.prototype.map.call(ua, function (ch) {
        return String.fromCharCode(ch);
    }).join('');
    var escstr = binstr.replace(/(.)/g, function (m, p) {
        var code = p.charCodeAt(p).toString(16).toUpperCase();
        if (code.length < 2) {
            code = '0' + code;
        }
        return '%' + code;
    });
    return decodeURIComponent(escstr);
}
567524
function UTF16(transformFunc) {
  this.transformFunc = transformFunc;
  var fillWith = wu.curryable(function (fill, el) {
    return fill(el);
  });
  if (this.transformFunc === null || this.transformFunc === undefined || typeof this.transformFunc !== 'function') {
    this.rcf = new RCF();
    this.fill = this.transformFunc = fillWith(this.rcf.seq());
  } else if (!this.fill) {
    this.fill = fillWith(this.transformFunc);
  }

  this.getRange = function (source) {
    switch (typeof source) {
      case 'object':
        if (!source instanceof wu) source = wu(source);
        break;
      case 'array':
        source = wu(source);
        break;
      case 'number':
        source = wu.count().take(source);
        break;
      case 'string':
        source = wu(source.split(''));
        break;
      default:
        source = wu.count().take(rand() & 31);
    }
    return wu.map(this.fill, source);
  };
}
876697
function encode(events) {
  if(!Array.isArray(events)) {
    return '00';
  }
  let bitmask = 0;
  for(event in events) {
    let index = events[event];
    bitmask += (1 << index);
  }
  return ('00' + bitmask.toString(16)).substr(-2);
}
649335
function byteArrayToString(byteArray) {
		let str = '';
		for (let i = 0; i < byteArray.length; i++) {
			str += byteArray[i] <= 0x7F ? byteArray[i] === 0x25 ? '%25' : // %
				String.fromCharCode(byteArray[i]) : '%' + byteArray[i].toString(16).toUpperCase();
		}

		return decodeURIComponent(str);
	}
1126211
function convertUint8ArrayToString( array ) {

		var s = '';

		for ( var i = 0; i < array.length; i ++ ) {

			s += String.fromCharCode( array[ i ] );

		}

		return s;

	}