Files
gymkhana-actions/docs/api/ESCUtils.md
Dennis Ploeger 58d880101d Optimized Docs (#7)
Authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-06-22 23:06:20 +02:00

1.2 KiB

ESCUtils

Extends: Object

Description

A set of common utilities

Method Descriptions

get_deg_from_rad

func get_deg_from_rad(rad_angle: float)

Convert radians to degrees

Parameters

  • rad_angle: Angle in radians Returns Degrees

get_re_group

func get_re_group(re_match: RegExMatch, group: String) -> String

Get the content of a reg exp group by name

Parameters

  • re_match: The RegExMatch object
  • group: The name of the group Returns The value of the named regex group in the match

get_typed_value

func get_typed_value(value: String)

Return a string value in the correct infered type

Parameters

  • value: The original value Returns The typed value according to the type inference

sanitize_whitespace

func sanitize_whitespace(value: String) -> String

Sanitize use of whitespaces in a string. Removes double whitespaces and converts tabs into space.

Paramters

  • value: String to work on Returns the string with sanitized whitespaces