function stringSize(string) {
    return hasUnicode(string)
      ? unicodeSize(string)
      : asciiSize(string);
  }
Gets the number of symbols in `string`.

@private
@param {string} string The string to inspect.
@returns {number} Returns the string size.