Sass String Functions

You are Here:

Sass String Functions

The following are the list of inbuilt string functions available in Sass language.

FunctionsExplanation
quote()Returns a string as a quoted string.
str-index()Returns the first index of a substring in a string, or null if a string doesn't contain a substring.
str-insert()Returns a copy of a string with a new letter(s) inserted at the specified index.
str-length()Returns the number of characters in a string.
str-slice()Returns the slice of a string starting at the specified index and ending at the specified index.
to-upper-case()Returns a copy of a string with the ASCII letters converted to upper case.
to-lower-case()Returns a copy of a string with the ASCII letters converted to lower case.
unique-id()Returns a randomly-generated unquoted string that’s guaranteed to be a valid CSS identifier and to be unique within the current Sass compilation.
unquote()Returns a string as an unquoted string.

Reminder

Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author