Static Methodscinfu.swiftsoup 2.8.7SwiftSoup
notEmpty(string:)
Validate.swift:108static func notEmpty(string: String?) throws
static func notEmpty(string: String?) throws
import SwiftSoup
struct Validate
@frozen struct String
A Unicode string value that is a collection of characters.
static func exception(msg: String) throws
Helper
static func fail(msg: String) throws
Cause a failure.
static func isFalse(val: Bool) throws
Validates that the value is false
static func isFalse(val: Bool, msg: String) throws
Validates that the value is false
static func isTrue(val: Bool) throws
Validates that the value is true
static func isTrue(val: Bool, msg: String) throws
Validates that the value is true
static func noNullElements(objects: [AnyObject?]) throws
Validates that the array contains no null elements
static func noNullElements(objects: [AnyObject?], msg: String) throws
Validates that the array contains no null elements
static func notEmpty<T>(string: T?) throws where T : Collection, T.Element == UInt8
Validates that the string is not empty
static func notEmpty(string: String?, msg: String) throws
static func notEmpty(string: [UInt8]?, msg: String) throws
Validates that the string is not empty
static func notNull(obj: Any?) throws
Validates that the object is not null
static func notNull(obj: AnyObject?, msg: String) throws
Validates that the object is not null