[][src]Module alass_util::util

Various utility functions for conversions, charset detection, etc.

Functions

delta_str

Converts optional TimeDelta from alass_core to human readable representation

detect_encoding

Attempts to detect character encoding by inspecting raw bytes

detect_encoding_or

Attempts to detect character encoding by inspecting raw bytes. Fall back to default value if detection fails

lookup_encoding

Retrieves Encoding given it's label

scaled_timespan

Scales the start and end of each span by a given factor

to_alass_timepoint

Convert TimePoint from subparse to alass_core representation

to_subparse_delta

Convert TimeDelta from alass_core to subparse representation

to_subparse_deltas

Convert TimeDeltas from alass_core to subparse representation