Open In App

SASS sass:string Module

The sass:string module makes it easy to combine, search, or split strings apart. The following are the list of functions that can be used using this module.

1. string.quote() function: This function returns a quoted string.

2. string.index() function: This function returns the first index of the substring of a string, or null if the string does not contain the given substring.

3. string.insert() function: This function returns a copy of string with the given insert substring inserted at the given index.

4. string.length() function: This function returns the total number of characters of the given string.

5. string.slice() function: This function returns the slice of string starting at index given as “start-at” and ending at index given as “end-at” (both including).

6. string.to-upper-case() function: This function returns the copy of the given string with the ASCII letters converted to upper case.

Article Tags :