Functions

The following functions are available globally.

  • Compare the given double values within the given amount of precision.

    Declaration

    Objective-C

    static inline BOOL CBLFloatAlmostEqual(double x, double y, double delta)

    Swift

    func CBLFloatAlmostEqual(_ x: Double, _ y: Double, _ delta: Double) -> Bool
  • Returns a CascableCore localised string from the given table. Typically this shouldn’t be used - use the various localised value properties in the framework instead.

    Declaration

    Objective-C

    extern NSString *_Nonnull CBLCoreLocalizedString(NSString *_Nonnull key,
                                                     NSString *_Nonnull table)

    Swift

    func CBLCoreLocalizedString(_ key: String, _ table: String) -> String