Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/StringContext

StringContext

scala.StringContext
See theStringContext companion class

Attributes

Companion
class
Source
StringContext.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type

Members list

Type members

Classlikes

An exception that is thrown if a string contains a backslash (\) character that does not start a valid escape sequence.

An exception that is thrown if a string contains a backslash (\) character that does not start a valid escape sequence.

Value parameters

index

The index of the offending backslash character instr.

str

The offending string

Attributes

Source
StringContext.scala
Supertypes

Value members

Concrete methods

defcheckLengths(args:Seq[Any],parts:Seq[String]):Unit

Checks that the length of the given argumentargs is one less than the number ofparts supplied to theStringContext.

Checks that the length of the given argumentargs is one less than the number ofparts supplied to theStringContext.

Attributes

Throws

IllegalArgumentExceptionif this is not the case.

Source
StringContext.scala
defglob(patternChunks:Seq[String],input:String):Option[Seq[String]]

Linear time glob-matching implementation.

Linear time glob-matching implementation. Adapted from https://research.swtch.com/glob

Value parameters

input

The input you wish to match against

patternChunks

The non-wildcard portions of the input pattern, separated by wildcards

Attributes

Returns

None if there is no match, Some containing the sequence of matched wildcard strings if there is a match

Source
StringContext.scala

Expands standard Scala escape sequences in a string.

Expands standard Scala escape sequences in a string. Escape sequences are: control:\b,\t,\n,\f,\r escape:\\,\",\'

Value parameters

str

A string that may contain escape sequences

Attributes

Returns

The string with all escape sequences expanded.

Source
StringContext.scala

Attributes

Source
StringContext.scala

Deprecated methods

Expands standard Scala escape sequences in a string.

Expands standard Scala escape sequences in a string. Escape sequences are: control:\b,\t,\n,\f,\r escape:\\,\",\'

Value parameters

str

A string that may contain escape sequences

Attributes

Returns

The string with all escape sequences expanded.

Deprecated
[Since version 2.13.0]use processEscapes
Source
StringContext.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp