Tests a string array, to see if all items are null or an empty string.

@param pStringArray The string array to check.
@return true if the string array is null or only contains string items
that are null or contain only whitespace, otherwise false.
173524
public static boolean isEmpty(String[] pStringArray) {
        // No elements to test
        if (pStringArray == null) {
            return true;
        }

        // Test all the elements
        for (String string : pStringArray) {
            if (!isEmpty(string)) {
                return false;
            }
        }

        // All elements are empty
        return true;
    }
306225
public function isString($item=null) {
    list($item) = self::_wrapArgs(func_get_args(), 1);
    return self::_wrap(is_string($item));
  }
747764
private static boolean nonEmptyIntersection(String[] a, String[] b) {
    if (a == null || b == null || a.length == 0 || b.length == 0) {
      return false;
    }
    for (String toFind : a) {
      if (contains(b, toFind)) {
        return true;
      }
    }
    return false;
  }
332726
public static boolean hasPlrselPart(List<SoyMsgPart> msgParts) {
    for (SoyMsgPart origMsgPart : msgParts) {
      if (origMsgPart instanceof SoyMsgPluralPart || origMsgPart instanceof SoyMsgSelectPart) {
        return true;
      }
    }
    return false;
  }
65981
public static boolean hasValidCppCharacters(String s) {
    for (char c : s.toCharArray()) {
      if (!isValidCppCharacter(c)) {
        return false;
      }
    }
    return true;
  }
362807
private static String checkForEmptyString(String s) {
        if (s == null) return null;
        if (s.length() == 0) return null;

        return s;
    }
501613
function isEmpty( value ) {
	if ( isString( value ) && !value.length ) {
		return true;
	}
	if ( isArray( value ) && !value.length ) {
		return true;
	}
	if ( typeof value !== 'object' || value === null ) {
		return false;
	}
	return ( !keys( value ).length );
}
1326499
public static boolean isNullOrEmpty(@Nullable String string)
  {
    if (string == null || string.isEmpty())
    {
      return true;
    }
    return false;
  }
739794
public boolean isEmpty() {
        for (String key : data.keySet()) {
            if (!TS_KEY.equals(key)) {
                return false;
            }
        }
        return true;
    }
963273
function isStringLiteralArray(node) {
    return isArrayExpr(node) &&
           isArray(node.elements) &&
           node.elements.every(isStringLiteral);
}
1257264
public static boolean isEmpty(final String... values) {
		if (values == null || values.length == 0)
			return true;
		for (String value : values)
			if (value == null || value.length() == 0)
				return true;
		return false;
	}
514407
public static boolean isJsonArray(String str) {
		if (StrUtil.isBlank(str)) {
			return false;
		}
		return StrUtil.isWrap(str.trim(), '[', ']');
	}
707202
@SuppressWarnings("rawtypes")
    @Override
    public boolean getIsEmpty() {

        if (m_object == null) {
            // this is the case for non existing values
            return true;
        } else if (m_object instanceof String) {
            // return values for String
            return CmsStringUtil.isEmpty((String)m_object);
        } else if (m_object instanceof Collection) {
            // if a collection has any entries it is not emtpy
            return !((Collection)m_object).isEmpty();
        } else {
            // assume all other non-null objects are not empty
            return false;
        }
    }
301546
public static boolean isNullOrEmptyOrBlank(final CharSequence s) {
        if (N.isNullOrEmpty(s)) {
            return true;
        }

        for (int i = 0, len = s.length(); i < len; i++) {
            if (Character.isWhitespace(s.charAt(i)) == false) {
                return false;
            }
        }

        return true;
    }
1326413
public final boolean contains(String s)
  {

    if (null == s)
      return false;

    for (int i = 0; i < m_firstFree; i++)
    {
      if (m_map[i].equals(s))
        return true;
    }

    return false;
  }
281469
public static function isStringInList(array $list, ?string $key = null): bool
    {
        $stringInList = false;
        if (count($list) === 0) {
            return $stringInList;
        }
        foreach ($list as $item) {
            if ($key !== null && isset($item[$key])) {
                $value = $item[$key];
            } else {
                $value = $item;
            }
            if (!is_numeric($value)) {
                $stringInList = true;
            }
        }
        return $stringInList;
    }
874662
public static String[] readStringArray(DataInput in) throws IOException {
        int len = in.readInt();
        if (len == -1)
            return null;
        String[] s = new String[len];
        for (int i = 0; i < len; i++) {
            s[i] = readString(in);
        }
        return s;
    }