NimbusStringHelper

open class NimbusStringHelper:
    NimbusStringHelperProtocol
  • Declaration

    Swift

    required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer)
  • Generates an optional UUID to be passed into the string_format method. If the return is not null, then it should be recorded with Glean as a UuidMetricType.

    Declaration

    Swift

    open func getUuid(template: String) -> String?
  • Take the given template and find patterns that match the regular expression {\w+}. Any matches are used as keys into the application context, the additional_context or the special case uuid.

    Declaration

    Swift

    open func stringFormat(template: String, uuid: String? = nil) -> String