Search documentation of Localize

# Localize.Utils (Localize v0.39.0)

Copy Markdown View Source

Utility functions and namespace for Localize utility submodules.

This module provides general-purpose utility functions. Specialized utilities are organized in submodules:

- `Localize.Utils.Math` — mathematical operations.

- `Localize.Utils.Digits` — number decomposition and digit manipulation.

- `Localize.Utils.String` — string transformation utilities.

- `Localize.Utils.Enum` — enumerable utilities with lookahead.

- `Localize.Utils.Map` — deep map transformation and manipulation.

- `Localize.Utils.Helpers` — general-purpose helper functions.

- `Localize.Utils.Decimal` — `Decimal` library compatibility layer.

- `Localize.Utils.Json` — JSON decoding utilities.

- `Localize.Utils.Http` — secure HTTPS downloading.

## Summary

### Functions

otp_version()

Returns the current OTP version as a string.

## Functions

# otp_version()

    @spec otp_version() :: String.t()

Returns the current OTP version as a string.

### Returns

- A string representing the full OTP version (e.g., `"27.0"`), or the major release string if the full version cannot be determined.

### Examples

    iex> is_binary(Localize.Utils.otp_version())
    true