String Functions in Fusion Flashcards

https://experienceleague.adobe.com/en/docs/workfront/using/adobe-workfront-fusion/functions-in-fusion/string-functions

1
Q

What function removes all non-ascii characters from a text string?

A

ascii (text; [remove diacritics])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What function transforms text to base64?

A

base64 (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What function converts the first character in a text string to uppercase?

A

capitalize (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What function verifies whether text contains the search string?

A

contains (text; search string)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What function decodes special characters in a URL to text?

A

decodeURL (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What function encodes special characters in some text to a valid URL address?

A

encodeURL (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What function escapes all HTML tags in text?

A

escapeHTML (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What function escapes all Markdown tags in text?

A

escapeMarkdown(text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What function returns the position of the first occurrence of a specified value in a string?

A

indexOf (string; value; [start])

*This method returns ‘-1’ if the value that is searched for is not there. The start value indicates where in the string the search should begin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What function returns the length of text string (number of characters) or binary buffer (buffer size in bytes)?

A

length (text or buffer)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What function converts all alphabetical characters in a text string to lowercase?

A

lower (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What function calculates the md5 hash of a string?

A

md5 (text)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What function replaces the search string with the new string?

A

replace (text;search string; replacement string)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What special replacement patterns can be included in a replacement strong?

A

$& - Inserts the matched substring
$n - Where n is a positive integer less than 100, inserts the nth parenthesized submatch string. This is 1-indexed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What function calculates the sha1 hash of a string?

A

sha1 (text; [encoding]; [key])

*If the key argument is specified, sha1 HMAC hash is returned instead. Supported encodings: “hex” (default), “base64” or “latin1.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What function calculates the sha256 hash of a string?

A

sha256 (text; [encoding]; [key])

*If the key argument is specified, sha256 HMAC hash is returned instead. Supported encodings: “hex” (default), “base64” or “latin1”.>

17
Q

What function calculates the sha512 hash of a string?

A

sha512 (text; [output encoding]; [key]; [key encoding])

*If the key argument is specified, sha512 HMAC hash is returned instead.

18
Q

What function splits a string into an array of strings by separating the string into substrings?

A

split (text; separator)

19
Q

What function capitalizes the first letter of every word and lower cases all other letters?

A

startcase (text)

20
Q

What function removes all HTML tags from text?

A

stripHTML (text)

21
Q

What function returns a portion of a text string between the “start” position and “end” position?

A

substring (text; start; end)

22
Q

What function converts any value to binary data?

A

toBinary (value)

*You can also specify encoding as a second argument to apply binary conversions from hex or base64 to binary data.

23
Q

What function converts any value to a string?

A

toString (value)

24
Q

What function removes space characters at the start or end of the text?

A

trim (text)

25
Q

What function converts all alphabetical characters in a text string to uppercase?

A

upper (text)