From 92f66f5e69f70814ed94ebb627752efca0cabca8 Mon Sep 17 00:00:00 2001 From: nikoraes Date: Tue, 24 Mar 2026 10:29:04 +0000 Subject: [PATCH] Update Konnektr Jexl documentation --- content/docs/jexl/introduction.mdx | 2 - content/docs/jexl/reference/array/index.mdx | 68 +++++++++---------- .../docs/jexl/reference/conversion/index.mdx | 32 ++++----- .../reference/datetime/convertTimeZone.mdx | 8 ++- .../docs/jexl/reference/datetime/index.mdx | 26 ++++--- .../datetime/localTimeToIsoWithOffset.mdx | 31 --------- .../docs/jexl/reference/encoding/index.mdx | 12 ++-- content/docs/jexl/reference/index.mdx | 2 +- content/docs/jexl/reference/math/index.mdx | 42 ++++++------ content/docs/jexl/reference/object/index.mdx | 12 ++-- content/docs/jexl/reference/string/index.mdx | 56 +++++++-------- content/docs/jexl/reference/utility/index.mdx | 22 +++--- 12 files changed, 141 insertions(+), 172 deletions(-) delete mode 100644 content/docs/jexl/reference/datetime/localTimeToIsoWithOffset.mdx diff --git a/content/docs/jexl/introduction.mdx b/content/docs/jexl/introduction.mdx index 27215ba..d6f64a9 100644 --- a/content/docs/jexl/introduction.mdx +++ b/content/docs/jexl/introduction.mdx @@ -3,8 +3,6 @@ title: JEXL Extended Documentation description: Complete guide to JEXL Extended across JavaScript, Python, and C# implementations --- -# JEXL Extended Documentation - Welcome to JEXL Extended, a powerful context-based expression parser and evaluator with 80+ built-in functions. Available in multiple programming languages with identical JEXL syntax. ## Available Implementations diff --git a/content/docs/jexl/reference/array/index.mdx b/content/docs/jexl/reference/array/index.mdx index ec7e48b..fddaf65 100644 --- a/content/docs/jexl/reference/array/index.mdx +++ b/content/docs/jexl/reference/array/index.mdx @@ -9,40 +9,40 @@ Array operations and transformations ## Functions -- [`all`](./all): Checks whether the provided array has all elements that match the specified expression. -- [`any`](./any): Checks whether the provided array has any elements that match the specified expression. -- [`append`](./append): Appends elements to an array. -- [`distinct`](./distinct): Returns a new array with duplicate elements removed. -- [`filter`](./filter): Returns a new array with the elements of the input array that match the specified expression. -- [`find`](./find): Finds the first element in an array that matches the specified expression. -- [`findIndex`](./findIndex): Finds the index of the first element in the input array that satisfies the given Jexl expression. -- [`join`](./join): Joins elements of an array into a string. -- [`keys`](./keys): Returns the keys of an object as an array. -- [`map`](./map): Returns an array containing the results of applying the expression parameter to each value in the array parameter. -- [`mapField`](./mapField): Returns a new array with elements transformed by extracting a specific field. -- [`range`](./range): Returns a sub-array from start index to end index. -- [`reduce`](./reduce): Returns an aggregated value derived from applying the function parameter successively to each value in array in combination with the result of the previous application of the function. -- [`reverse`](./reverse): Reverses the elements of an array. -- [`shuffle`](./shuffle): Shuffles the elements of an array randomly. -- [`sort`](./sort): Sorts the elements of an array. -- [`toObject`](./toObject): Creates a new object based on key-value pairs or string keys. +- [`all`](./array/all): Checks whether the provided array has all elements that match the specified expression. +- [`any`](./array/any): Checks whether the provided array has any elements that match the specified expression. +- [`append`](./array/append): Appends elements to an array. +- [`distinct`](./array/distinct): Returns a new array with duplicate elements removed. +- [`filter`](./array/filter): Returns a new array with the elements of the input array that match the specified expression. +- [`find`](./array/find): Finds the first element in an array that matches the specified expression. +- [`findIndex`](./array/findIndex): Finds the index of the first element in the input array that satisfies the given Jexl expression. +- [`join`](./array/join): Joins elements of an array into a string. +- [`keys`](./array/keys): Returns the keys of an object as an array. +- [`map`](./array/map): Returns an array containing the results of applying the expression parameter to each value in the array parameter. +- [`mapField`](./array/mapField): Returns a new array with elements transformed by extracting a specific field. +- [`range`](./array/range): Returns a sub-array from start index to end index. +- [`reduce`](./array/reduce): Returns an aggregated value derived from applying the function parameter successively to each value in array in combination with the result of the previous application of the function. +- [`reverse`](./array/reverse): Reverses the elements of an array. +- [`shuffle`](./array/shuffle): Shuffles the elements of an array randomly. +- [`sort`](./array/sort): Sorts the elements of an array. +- [`toObject`](./array/toObject): Creates a new object based on key-value pairs or string keys. ## Transforms -- [`all`](./all): Checks whether the provided array has all elements that match the specified expression. -- [`any`](./any): Checks whether the provided array has any elements that match the specified expression. -- [`append`](./append): Appends elements to an array. -- [`distinct`](./distinct): Returns a new array with duplicate elements removed. -- [`filter`](./filter): Returns a new array with the elements of the input array that match the specified expression. -- [`find`](./find): Finds the first element in an array that matches the specified expression. -- [`findIndex`](./findIndex): Finds the index of the first element in the input array that satisfies the given Jexl expression. -- [`join`](./join): Joins elements of an array into a string. -- [`keys`](./keys): Returns the keys of an object as an array. -- [`map`](./map): Returns an array containing the results of applying the expression parameter to each value in the array parameter. -- [`mapField`](./mapField): Returns a new array with elements transformed by extracting a specific field. -- [`range`](./range): Returns a sub-array from start index to end index. -- [`reduce`](./reduce): Returns an aggregated value derived from applying the function parameter successively to each value in array in combination with the result of the previous application of the function. -- [`reverse`](./reverse): Reverses the elements of an array. -- [`shuffle`](./shuffle): Shuffles the elements of an array randomly. -- [`sort`](./sort): Sorts the elements of an array. -- [`toObject`](./toObject): Creates a new object based on key-value pairs or string keys. +- [`all`](./array/all): Checks whether the provided array has all elements that match the specified expression. +- [`any`](./array/any): Checks whether the provided array has any elements that match the specified expression. +- [`append`](./array/append): Appends elements to an array. +- [`distinct`](./array/distinct): Returns a new array with duplicate elements removed. +- [`filter`](./array/filter): Returns a new array with the elements of the input array that match the specified expression. +- [`find`](./array/find): Finds the first element in an array that matches the specified expression. +- [`findIndex`](./array/findIndex): Finds the index of the first element in the input array that satisfies the given Jexl expression. +- [`join`](./array/join): Joins elements of an array into a string. +- [`keys`](./array/keys): Returns the keys of an object as an array. +- [`map`](./array/map): Returns an array containing the results of applying the expression parameter to each value in the array parameter. +- [`mapField`](./array/mapField): Returns a new array with elements transformed by extracting a specific field. +- [`range`](./array/range): Returns a sub-array from start index to end index. +- [`reduce`](./array/reduce): Returns an aggregated value derived from applying the function parameter successively to each value in array in combination with the result of the previous application of the function. +- [`reverse`](./array/reverse): Reverses the elements of an array. +- [`shuffle`](./array/shuffle): Shuffles the elements of an array randomly. +- [`sort`](./array/sort): Sorts the elements of an array. +- [`toObject`](./array/toObject): Creates a new object based on key-value pairs or string keys. diff --git a/content/docs/jexl/reference/conversion/index.mdx b/content/docs/jexl/reference/conversion/index.mdx index ed28997..4fb7ea2 100644 --- a/content/docs/jexl/reference/conversion/index.mdx +++ b/content/docs/jexl/reference/conversion/index.mdx @@ -9,22 +9,22 @@ Convert between different data types ## Functions -- [`boolean`](./boolean): Converts the input to a boolean. -- [`formatBase`](./formatBase): Formats a number as a string in the specified base. -- [`formatInteger`](./formatInteger): Formats a number as an integer with zero padding. -- [`formatNumber`](./formatNumber): Formats a number to a decimal representation as specified by the format string. -- [`json`](./json): Parses the string and returns a JSON object. -- [`number`](./number): Converts the input to a number. -- [`parseInteger`](./parseInteger): Parses a string and returns an integer. -- [`string`](./string): Casts the input to a string. +- [`boolean`](./conversion/boolean): Converts the input to a boolean. +- [`formatBase`](./conversion/formatBase): Formats a number as a string in the specified base. +- [`formatInteger`](./conversion/formatInteger): Formats a number as an integer with zero padding. +- [`formatNumber`](./conversion/formatNumber): Formats a number to a decimal representation as specified by the format string. +- [`json`](./conversion/json): Parses the string and returns a JSON object. +- [`number`](./conversion/number): Converts the input to a number. +- [`parseInteger`](./conversion/parseInteger): Parses a string and returns an integer. +- [`string`](./conversion/string): Casts the input to a string. ## Transforms -- [`boolean`](./boolean): Converts the input to a boolean. -- [`formatBase`](./formatBase): Formats a number as a string in the specified base. -- [`formatInteger`](./formatInteger): Formats a number as an integer with zero padding. -- [`formatNumber`](./formatNumber): Formats a number to a decimal representation as specified by the format string. -- [`json`](./json): Parses the string and returns a JSON object. -- [`number`](./number): Converts the input to a number. -- [`parseInteger`](./parseInteger): Parses a string and returns an integer. -- [`string`](./string): Casts the input to a string. +- [`boolean`](./conversion/boolean): Converts the input to a boolean. +- [`formatBase`](./conversion/formatBase): Formats a number as a string in the specified base. +- [`formatInteger`](./conversion/formatInteger): Formats a number as an integer with zero padding. +- [`formatNumber`](./conversion/formatNumber): Formats a number to a decimal representation as specified by the format string. +- [`json`](./conversion/json): Parses the string and returns a JSON object. +- [`number`](./conversion/number): Converts the input to a number. +- [`parseInteger`](./conversion/parseInteger): Parses a string and returns an integer. +- [`string`](./conversion/string): Casts the input to a string. diff --git a/content/docs/jexl/reference/datetime/convertTimeZone.mdx b/content/docs/jexl/reference/datetime/convertTimeZone.mdx index 4641b11..43df993 100644 --- a/content/docs/jexl/reference/datetime/convertTimeZone.mdx +++ b/content/docs/jexl/reference/datetime/convertTimeZone.mdx @@ -23,9 +23,13 @@ ISO datetime string with correct offset ## Examples ```javascript -convertTimeZone('2025-06-26T12:00:00Z', 'Europe/Amsterdam') // 2025-06-26T14:00:00.0000000+02:00 +convertTimeZone(datetime, timezone) ``` ```javascript -'2025-06-26T12:00:00Z'|convertTimeZone('Pacific Standard Time') // '2025-06-26T05:00:00.0000000-07:00' +$convertTimeZone(datetime, timezone) +``` + +```javascript +datetime|convertTimeZone(timezone) ``` diff --git a/content/docs/jexl/reference/datetime/index.mdx b/content/docs/jexl/reference/datetime/index.mdx index 557b9ba..501b066 100644 --- a/content/docs/jexl/reference/datetime/index.mdx +++ b/content/docs/jexl/reference/datetime/index.mdx @@ -9,20 +9,18 @@ Date and time operations ## Functions -- [`convertTimeZone`](./convertTimeZone): Converts an ISO datetime string to a target timezone, handling daylight savings, and returns an ISO string with the correct offset. -- [`dateTimeAdd`](./dateTimeAdd): Adds a time range to a date and time in the ISO 8601 format. -- [`dateTimeFormat`](./dateTimeFormat): Converts a date and time to a provided format. -- [`dateTimeToMillis`](./dateTimeToMillis): Parses the date and time in the ISO 8601 format and returns the number of milliseconds since the Unix epoch. -- [`localTimeToIsoWithOffset`](./localTimeToIsoWithOffset): Converts a local time string in a specified timezone to an ISO datetime string with the correct offset. -- [`millis`](./millis): Returns the current date and time in milliseconds since the Unix epoch. -- [`millisToDateTime`](./millisToDateTime): Parses the number of milliseconds since the Unix epoch or parses a string (with or without specified format) and returns the date and time in the ISO 8601 format. -- [`now`](./now): Returns the current date and time in the ISO 8601 format. +- [`convertTimeZone`](./datetime/convertTimeZone): Converts an ISO datetime string to a target timezone, handling daylight savings, and returns an ISO string with the correct offset. +- [`dateTimeAdd`](./datetime/dateTimeAdd): Adds a time range to a date and time in the ISO 8601 format. +- [`dateTimeFormat`](./datetime/dateTimeFormat): Converts a date and time to a provided format. +- [`dateTimeToMillis`](./datetime/dateTimeToMillis): Parses the date and time in the ISO 8601 format and returns the number of milliseconds since the Unix epoch. +- [`millis`](./datetime/millis): Returns the current date and time in milliseconds since the Unix epoch. +- [`millisToDateTime`](./datetime/millisToDateTime): Parses the number of milliseconds since the Unix epoch or parses a string (with or without specified format) and returns the date and time in the ISO 8601 format. +- [`now`](./datetime/now): Returns the current date and time in the ISO 8601 format. ## Transforms -- [`convertTimeZone`](./convertTimeZone): Converts an ISO datetime string to a target timezone, handling daylight savings, and returns an ISO string with the correct offset. -- [`dateTimeAdd`](./dateTimeAdd): Adds a time range to a date and time in the ISO 8601 format. -- [`dateTimeFormat`](./dateTimeFormat): Converts a date and time to a provided format. -- [`dateTimeToMillis`](./dateTimeToMillis): Parses the date and time in the ISO 8601 format and returns the number of milliseconds since the Unix epoch. -- [`localTimeToIsoWithOffset`](./localTimeToIsoWithOffset): Converts a local time string in a specified timezone to an ISO datetime string with the correct offset. -- [`millisToDateTime`](./millisToDateTime): Parses the number of milliseconds since the Unix epoch or parses a string (with or without specified format) and returns the date and time in the ISO 8601 format. +- [`convertTimeZone`](./datetime/convertTimeZone): Converts an ISO datetime string to a target timezone, handling daylight savings, and returns an ISO string with the correct offset. +- [`dateTimeAdd`](./datetime/dateTimeAdd): Adds a time range to a date and time in the ISO 8601 format. +- [`dateTimeFormat`](./datetime/dateTimeFormat): Converts a date and time to a provided format. +- [`dateTimeToMillis`](./datetime/dateTimeToMillis): Parses the date and time in the ISO 8601 format and returns the number of milliseconds since the Unix epoch. +- [`millisToDateTime`](./datetime/millisToDateTime): Parses the number of milliseconds since the Unix epoch or parses a string (with or without specified format) and returns the date and time in the ISO 8601 format. diff --git a/content/docs/jexl/reference/datetime/localTimeToIsoWithOffset.mdx b/content/docs/jexl/reference/datetime/localTimeToIsoWithOffset.mdx deleted file mode 100644 index 098467e..0000000 --- a/content/docs/jexl/reference/datetime/localTimeToIsoWithOffset.mdx +++ /dev/null @@ -1,31 +0,0 @@ ---- -title: localTimeToIsoWithOffset -description: Converts a local time string in a specified timezone to an ISO datetime string with the correct offset. ---- - -# localTimeToIsoWithOffset - -Converts a local time string in a specified timezone to an ISO datetime string with the correct offset. - -**Type:** transform - -## Parameters - -- **localTime** (string): Local time string -- **timeZone** (string): Timezone (IANA or Windows ID or fixed offset) - -## Returns - -**Type:** `string` - -ISO datetime string with correct offset - -## Examples - -```javascript -localTimeToIsoWithOffset('2025-06-26 14:00:00', 'Europe/Amsterdam') // '2025-06-26T14:00:00.0000000+02:00' -``` - -```javascript -'2025-06-26 05:00:00'|localTimeToIsoWithOffset('Pacific Standard Time') // '2025-06-26T05:00:00.0000000-08:00' -``` diff --git a/content/docs/jexl/reference/encoding/index.mdx b/content/docs/jexl/reference/encoding/index.mdx index d61a7bd..16aa34e 100644 --- a/content/docs/jexl/reference/encoding/index.mdx +++ b/content/docs/jexl/reference/encoding/index.mdx @@ -9,12 +9,12 @@ Data encoding and formatting utilities ## Functions -- [`base64Decode`](./base64Decode): Decodes a Base64 encoded string. -- [`base64Encode`](./base64Encode): Encodes a string to Base64. -- [`formUrlEncoded`](./formUrlEncoded): Encodes a string or object to URI component format. +- [`base64Decode`](./encoding/base64Decode): Decodes a Base64 encoded string. +- [`base64Encode`](./encoding/base64Encode): Encodes a string to Base64. +- [`formUrlEncoded`](./encoding/formUrlEncoded): Encodes a string or object to URI component format. ## Transforms -- [`base64Decode`](./base64Decode): Decodes a Base64 encoded string. -- [`base64Encode`](./base64Encode): Encodes a string to Base64. -- [`formUrlEncoded`](./formUrlEncoded): Encodes a string or object to URI component format. +- [`base64Decode`](./encoding/base64Decode): Decodes a Base64 encoded string. +- [`base64Encode`](./encoding/base64Encode): Encodes a string to Base64. +- [`formUrlEncoded`](./encoding/formUrlEncoded): Encodes a string or object to URI component format. diff --git a/content/docs/jexl/reference/index.mdx b/content/docs/jexl/reference/index.mdx index 1e66cba..0c47e0f 100644 --- a/content/docs/jexl/reference/index.mdx +++ b/content/docs/jexl/reference/index.mdx @@ -13,7 +13,7 @@ JEXL Extended provides over 80 built-in functions and transforms organized into - [**Conversion**](./conversion): Convert between different data types (8 functions, 8 transforms) - [**String**](./string): String manipulation and formatting functions (14 functions, 14 transforms) - [**Utility**](./utility): General utility functions (6 functions, 5 transforms) -- [**DateTime**](./datetime): Date and time operations (8 functions, 6 transforms) +- [**DateTime**](./datetime): Date and time operations (7 functions, 5 transforms) - [**Object**](./object): Object manipulation and inspection (3 functions, 3 transforms) ## Usage diff --git a/content/docs/jexl/reference/math/index.mdx b/content/docs/jexl/reference/math/index.mdx index fa39f5c..42ff15f 100644 --- a/content/docs/jexl/reference/math/index.mdx +++ b/content/docs/jexl/reference/math/index.mdx @@ -9,27 +9,27 @@ Mathematical operations and calculations ## Functions -- [`abs`](./abs): Returns the absolute value of a number. -- [`average`](./average): Calculates the average of an array of numbers. -- [`ceil`](./ceil): Rounds a number up to the nearest integer. -- [`floor`](./floor): Rounds a number down to the nearest integer. -- [`max`](./max): Finds the maximum value in an array of numbers. -- [`min`](./min): Finds the minimum value in an array of numbers. -- [`power`](./power): Returns the value of a number raised to a power. -- [`random`](./random): Generates a random number between 0 (inclusive) and 1 (exclusive). -- [`round`](./round): Rounds a number to the nearest integer or to specified decimal places. -- [`sqrt`](./sqrt): Returns the square root of a number. -- [`sum`](./sum): Calculates the sum of an array of numbers. +- [`abs`](./math/abs): Returns the absolute value of a number. +- [`average`](./math/average): Calculates the average of an array of numbers. +- [`ceil`](./math/ceil): Rounds a number up to the nearest integer. +- [`floor`](./math/floor): Rounds a number down to the nearest integer. +- [`max`](./math/max): Finds the maximum value in an array of numbers. +- [`min`](./math/min): Finds the minimum value in an array of numbers. +- [`power`](./math/power): Returns the value of a number raised to a power. +- [`random`](./math/random): Generates a random number between 0 (inclusive) and 1 (exclusive). +- [`round`](./math/round): Rounds a number to the nearest integer or to specified decimal places. +- [`sqrt`](./math/sqrt): Returns the square root of a number. +- [`sum`](./math/sum): Calculates the sum of an array of numbers. ## Transforms -- [`abs`](./abs): Returns the absolute value of a number. -- [`average`](./average): Calculates the average of an array of numbers. -- [`ceil`](./ceil): Rounds a number up to the nearest integer. -- [`floor`](./floor): Rounds a number down to the nearest integer. -- [`max`](./max): Finds the maximum value in an array of numbers. -- [`min`](./min): Finds the minimum value in an array of numbers. -- [`power`](./power): Returns the value of a number raised to a power. -- [`round`](./round): Rounds a number to the nearest integer or to specified decimal places. -- [`sqrt`](./sqrt): Returns the square root of a number. -- [`sum`](./sum): Calculates the sum of an array of numbers. +- [`abs`](./math/abs): Returns the absolute value of a number. +- [`average`](./math/average): Calculates the average of an array of numbers. +- [`ceil`](./math/ceil): Rounds a number up to the nearest integer. +- [`floor`](./math/floor): Rounds a number down to the nearest integer. +- [`max`](./math/max): Finds the maximum value in an array of numbers. +- [`min`](./math/min): Finds the minimum value in an array of numbers. +- [`power`](./math/power): Returns the value of a number raised to a power. +- [`round`](./math/round): Rounds a number to the nearest integer or to specified decimal places. +- [`sqrt`](./math/sqrt): Returns the square root of a number. +- [`sum`](./math/sum): Calculates the sum of an array of numbers. diff --git a/content/docs/jexl/reference/object/index.mdx b/content/docs/jexl/reference/object/index.mdx index cd40cd7..3a1087b 100644 --- a/content/docs/jexl/reference/object/index.mdx +++ b/content/docs/jexl/reference/object/index.mdx @@ -9,12 +9,12 @@ Object manipulation and inspection ## Functions -- [`entries`](./entries): Returns an array of key-value pairs from the input object. -- [`merge`](./merge): Returns a new object with the properties of the input objects merged together. -- [`values`](./values): Returns the values of an object as an array. +- [`entries`](./object/entries): Returns an array of key-value pairs from the input object. +- [`merge`](./object/merge): Returns a new object with the properties of the input objects merged together. +- [`values`](./object/values): Returns the values of an object as an array. ## Transforms -- [`entries`](./entries): Returns an array of key-value pairs from the input object. -- [`merge`](./merge): Returns a new object with the properties of the input objects merged together. -- [`values`](./values): Returns the values of an object as an array. +- [`entries`](./object/entries): Returns an array of key-value pairs from the input object. +- [`merge`](./object/merge): Returns a new object with the properties of the input objects merged together. +- [`values`](./object/values): Returns the values of an object as an array. diff --git a/content/docs/jexl/reference/string/index.mdx b/content/docs/jexl/reference/string/index.mdx index b154c04..1558d27 100644 --- a/content/docs/jexl/reference/string/index.mdx +++ b/content/docs/jexl/reference/string/index.mdx @@ -9,34 +9,34 @@ String manipulation and formatting functions ## Functions -- [`camelCase`](./camelCase): Converts the input string to camel case. -- [`contains`](./contains): Checks if the input string or array contains the specified value. -- [`endsWith`](./endsWith): Checks if the input string ends with the specified substring. -- [`lowercase`](./lowercase): Converts the input string to lowercase. -- [`pad`](./pad): Pads the input string to the specified width. -- [`pascalCase`](./pascalCase): Converts the input string to pascal case. -- [`replace`](./replace): Replaces occurrences of a specified string with a replacement string. -- [`split`](./split): Splits the input string into an array of substrings. -- [`startsWith`](./startsWith): Checks if the input string starts with the specified substring. -- [`substring`](./substring): Gets a substring of a string. -- [`substringAfter`](./substringAfter): Returns the substring after the first occurrence of the character sequence chars in str. -- [`substringBefore`](./substringBefore): Returns the substring before the first occurrence of the character sequence chars in str. -- [`trim`](./trim): Trims whitespace from both ends of a string. -- [`uppercase`](./uppercase): Converts the input string to uppercase. +- [`camelCase`](./string/camelCase): Converts the input string to camel case. +- [`contains`](./string/contains): Checks if the input string or array contains the specified value. +- [`endsWith`](./string/endsWith): Checks if the input string ends with the specified substring. +- [`lowercase`](./string/lowercase): Converts the input string to lowercase. +- [`pad`](./string/pad): Pads the input string to the specified width. +- [`pascalCase`](./string/pascalCase): Converts the input string to pascal case. +- [`replace`](./string/replace): Replaces occurrences of a specified string with a replacement string. +- [`split`](./string/split): Splits the input string into an array of substrings. +- [`startsWith`](./string/startsWith): Checks if the input string starts with the specified substring. +- [`substring`](./string/substring): Gets a substring of a string. +- [`substringAfter`](./string/substringAfter): Returns the substring after the first occurrence of the character sequence chars in str. +- [`substringBefore`](./string/substringBefore): Returns the substring before the first occurrence of the character sequence chars in str. +- [`trim`](./string/trim): Trims whitespace from both ends of a string. +- [`uppercase`](./string/uppercase): Converts the input string to uppercase. ## Transforms -- [`camelCase`](./camelCase): Converts the input string to camel case. -- [`contains`](./contains): Checks if the input string or array contains the specified value. -- [`endsWith`](./endsWith): Checks if the input string ends with the specified substring. -- [`lowercase`](./lowercase): Converts the input string to lowercase. -- [`pad`](./pad): Pads the input string to the specified width. -- [`pascalCase`](./pascalCase): Converts the input string to pascal case. -- [`replace`](./replace): Replaces occurrences of a specified string with a replacement string. -- [`split`](./split): Splits the input string into an array of substrings. -- [`startsWith`](./startsWith): Checks if the input string starts with the specified substring. -- [`substring`](./substring): Gets a substring of a string. -- [`substringAfter`](./substringAfter): Returns the substring after the first occurrence of the character sequence chars in str. -- [`substringBefore`](./substringBefore): Returns the substring before the first occurrence of the character sequence chars in str. -- [`trim`](./trim): Trims whitespace from both ends of a string. -- [`uppercase`](./uppercase): Converts the input string to uppercase. +- [`camelCase`](./string/camelCase): Converts the input string to camel case. +- [`contains`](./string/contains): Checks if the input string or array contains the specified value. +- [`endsWith`](./string/endsWith): Checks if the input string ends with the specified substring. +- [`lowercase`](./string/lowercase): Converts the input string to lowercase. +- [`pad`](./string/pad): Pads the input string to the specified width. +- [`pascalCase`](./string/pascalCase): Converts the input string to pascal case. +- [`replace`](./string/replace): Replaces occurrences of a specified string with a replacement string. +- [`split`](./string/split): Splits the input string into an array of substrings. +- [`startsWith`](./string/startsWith): Checks if the input string starts with the specified substring. +- [`substring`](./string/substring): Gets a substring of a string. +- [`substringAfter`](./string/substringAfter): Returns the substring after the first occurrence of the character sequence chars in str. +- [`substringBefore`](./string/substringBefore): Returns the substring before the first occurrence of the character sequence chars in str. +- [`trim`](./string/trim): Trims whitespace from both ends of a string. +- [`uppercase`](./string/uppercase): Converts the input string to uppercase. diff --git a/content/docs/jexl/reference/utility/index.mdx b/content/docs/jexl/reference/utility/index.mdx index 75dcd6a..1df7f34 100644 --- a/content/docs/jexl/reference/utility/index.mdx +++ b/content/docs/jexl/reference/utility/index.mdx @@ -9,17 +9,17 @@ General utility functions ## Functions -- [`case`](./case): Evaluates a list of predicates and returns the first result expression whose predicate is satisfied. -- [`eval`](./eval): Evaluates a JEXL expression and returns the result. -- [`length`](./length): Returns the number of characters in a string, or the length of an array. -- [`not`](./not): Returns the logical NOT of the input. -- [`type`](./type): Returns the type of the input value as a string. -- [`uuid`](./uuid): Generates a new UUID (Universally Unique Identifier). +- [`case`](./utility/case): Evaluates a list of predicates and returns the first result expression whose predicate is satisfied. +- [`eval`](./utility/eval): Evaluates a JEXL expression and returns the result. +- [`length`](./utility/length): Returns the number of characters in a string, or the length of an array. +- [`not`](./utility/not): Returns the logical NOT of the input. +- [`type`](./utility/type): Returns the type of the input value as a string. +- [`uuid`](./utility/uuid): Generates a new UUID (Universally Unique Identifier). ## Transforms -- [`case`](./case): Evaluates a list of predicates and returns the first result expression whose predicate is satisfied. -- [`eval`](./eval): Evaluates a JEXL expression and returns the result. -- [`length`](./length): Returns the number of characters in a string, or the length of an array. -- [`not`](./not): Returns the logical NOT of the input. -- [`type`](./type): Returns the type of the input value as a string. +- [`case`](./utility/case): Evaluates a list of predicates and returns the first result expression whose predicate is satisfied. +- [`eval`](./utility/eval): Evaluates a JEXL expression and returns the result. +- [`length`](./utility/length): Returns the number of characters in a string, or the length of an array. +- [`not`](./utility/not): Returns the logical NOT of the input. +- [`type`](./utility/type): Returns the type of the input value as a string.