SASS
2019.09.19 21:35
Sass String Functions
조회 수 688 추천 수 0 댓글 0
Sass 문자열은 1-based 입니다. 문자열의 첫 문자는 0이 아닌 1부터 시작합니다.
Function | Description & Example |
---|---|
quote(string) | Adds quotes to string, and returns the result. Example: quote(Hello world!) Result: "Hello world!" |
str-index(string, substring) | Returns the index of the first occurrence of the substring within string. Example: str-index("Hello world!", "H") Result: 1 |
str-insert(string, insert, index) | Returns string with insert inserted at the specified index position. Example: str-insert("Hello world!", " wonderful", 6) Result: "Hello wonderful world!" |
str-length(string) | Returns the length of string (in characters). Example: str-length("Hello world!") Result: 12 |
str-slice(string, start, end) | Extracts characters from string; start at start and end at end, and returns the slice. Example: str-slice("Hello world!", 2, 5) Result: "ello" |
to-lower-case(string) | Returns a copy of string converted to lower case. Example: to-lower-case("Hello World!") Result: "hello world!" |
to-upper-case(string) | Returns a copy of string converted to upper case. Example: to-upper-case("Hello World!") Result: "HELLO WORLD!" |
unique-id() | Returns a unique randomly generated unquoted string (guaranteed to be unique within the current sass session). Example: unique-id() Result: tyghefnsv |
unquote(string) | Removes quotes around string (if any), and returns the result. Example: unquote("Hello world!") Result: Hello world! |
번호 | 분류 | 제목 | 날짜 | 조회 수 |
---|---|---|---|---|
41 | SASS | Sass @while | 2019.09.20 | 929 |
40 | SASS | Sass @for | 2019.09.20 | 614 |
39 | SASS | Sass @each | 2019.09.20 | 545 |
38 | SASS | Sass @if and @else | 2019.09.20 | 555 |
37 | SASS | Sass Operators | 2019.09.20 | 551 |
36 | SASS | Sass Introspection Functions | 2019.09.19 | 512 |
35 | SASS | Sass Color Functions | 2019.09.19 | 480 |
34 | SASS | Sass Selector Functions | 2019.09.19 | 411 |
33 | SASS | Sass Map Functions | 2019.09.19 | 521 |
32 | SASS | Sass List Functions | 2019.09.19 | 572 |
31 | SASS | Sass Numeric Functions | 2019.09.19 | 507 |
» | SASS | Sass String Functions | 2019.09.19 | 688 |
29 | SASS | Sass @extend | 2019.09.19 | 547 |
28 | SASS | Sass @mixin과 @include | 2019.09.19 | 616 |
27 | SASS | Sass @import | 2019.09.19 | 605 |
26 | SASS | Sass 중첩 규칙과 속성 | 2019.09.19 | 531 |
25 | SASS | Sass 변수 | 2019.09.19 | 538 |
24 | SASS | Sass 소개 | 2019.09.19 | 520 |
23 | SASS | SASS 샘플 | 2019.08.16 | 867 |
22 | HTML | ::after ::before 토글 사용 예제 | 2019.06.28 | 928 |