code: function stringSize(string) {
        if (!(string && reHasComplexSymbol.test(string))) {
          return string.length;
        }
        var result = reComplexSymbol.lastIndex = 0;
        while (reComplexSymbol.test(string)) {
          result++;
        }
        return result;
      }
docs: Gets the number of symbols in `string`.
  
  @private
  @param {string} string The string to inspect.
  @returns {number} Returns the string size.