🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

Albatross.Expression

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Albatross.Expression

Albatross.Expression api is created to process and evaluate text based expression strings. The api tokenizes the expression text and create a tree model from the tokens. Using the model, it can evaluate the expression or convert it to a expression of different format. Some applications revert the process by creating the model first and using it to generate certain expression such as a sql query statement. The api also contains a useful ExecutionContext class that allows evaluation of expressions with variables. The variables can be read internally or directly from external objects.

3.0.13
NuGet
Version published
Maintainers
1
Created
Source
  • v3.0.13
    • New operation GetJsonArrayItem
      • Provided a json array and an index, the operation will return the array item at the index.
      • example 1: GetJsonArrayItem('[1, 2, 3]', 1)
        • return value 2
      • example 2: GetJsonArrayItem('[1, 2, 3]', 3)
        • throw an ArgumentException since array index is out of bound
  • v3.0.12
    • New operation RegexCapture
      • RegexCapture can be used to extract part of a text string using regex pattern and capature groups.
      • Operands
        • text to be parsed
        • regex pattern
        • group capture index (optional with the default of 0)
      • example 1: RegexCapture('abc123', '[a-z]+(\d+)', 1)
        • returns 123
      • example 2: RegexCapture('abc123', '[a-z]+(\d+)')
        • return abc123 because capture index is not specified and 0 is used by default
      • example 3: RegexCapture('abc123', '[a-z]+(\d+)', 3)
        • throw an ArgumentException since capture index is out of bound
  • 3.0.11
    • New operation
      • Floor - The Floor operation calls C# Math.Floor. It returns the largest integral value from the input double number.
      • Round - The Round operation calls C# Math.Round and use AwayFromZero rounding
        • Operands
          • double value to be rounded
          • number of fractional digits in the return value
      • UnixTimestamp2DateTime - Converts a Unix time expressed as the number of seconds that have elapsed since 1970-01-01T00:00:00Z to a DateTime value in UTC
        • Operands
          • integer: number of seconds that have elapsed since 1970-01-01T00:00:00Z

Keywords

csharp

FAQs

Package last updated on 24 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts