Classes | Collections>Ordered

# String : RawArray : ArrayedCollection : SequenceableCollection : Collection : Object

array of Chars
Source: String.sc
See also: Char

## Description

String represents an array of Chars.

Strings can be written literally using double quotes:"my string".class

A sequence of string literals will be concatenated together:x = "hel" "lo"; y = "this is a\n" "multiline\n" "string";

Backslash is the escape character. See Literals: Characters.

### Character encodings

Note that, while Char does not support encodings aside from ASCII—such as multi-byte encodings like UTF-8 and UTF-16, or the full Latin-1 (ISO 8859-1) character set—Chars with negative values are perfectly legal, and may be strung together in strings that use these encodings.

The SuperCollider IDE uses UTF-8 (a superset of ASCII) to decode and display strings, which means that the string `"🎹🙄🎻😂🎚️🎛️🎤😍"` can be written in the editor, posted in the post window, and treated for the most part like any other string. However, because non-ASCII UTF-8 characters consist of two or more bytes, and a SuperCollider String's members are one-bit Chars, concepts of size and indexing may not behave intuitively. For instance, the "`size`" of the string above is 38, not 8, and the value of its first index is `-16`, which is not a valid ASCII value at all but rather the signed 8-bit representation of the first byte of the UTF-8 value of the piano keyboard emoji (🎹), `0xF09F8EB9`.

## Class Methods

### String.readNew(file)

Read the entire contents of a File and return them as a new String.

### String.scDir

Provided for backwards compatibility.

#### Returns:

the value of `Platform.resourceDir`, which is the base resource directory of SuperCollider.

#### Discussion:

Please use Platform: *resourceDir instead.

### Extensions by wslib

### String.makeNoteName(name: $C, alt: 0, octave: 3, cents: 0, maxAlt: 3)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

Creates a String representing the name of a note.

#### Arguments:

name | Name or MIDI pitch of the note to construct.
alt | Number of half-steps (semitones) to adjust the note by. Equivalent to 100 cents. If this exceeds the `maxAlt` value, it will be cropped to that, and the excess will be converted into cents which can be obtained from the resulting string via the unique `-cents` method.
octave | The octave of the note. `3` corresponds to the octave starting at middle C.
cents | Number of cents, i.e. one-hundredths of a half-step (semitone) to adjust the note by.
maxAlt | Maximum number of accidentals to include in the string. Any excess will be translated into cents which can be obtained from the resulting string via the unique `-cents`method. Defaults to 2.

#### Discussion:

a = String.makeNoteName(name: $A); // "A3" a.class; // -> String a.alt; // -> 0

### String.notesDict

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

#### Returns:

An IdentityDictionary mapping characters representing note names to their offsets within the MIDI octave. For example, `$C` maps to `0`, and `$D` maps to `2`. Accidentals are not supported.

### Inherited class methods

### Undocumented class methods

### String.fillJoin(size, function, joiner, excludeNil: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### String.heightM9(n: 1)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### String.widthM9(n: 1)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

## Instance Methods

### Accessing characters

### @(index)

From superclass: Collection

### .at(index)

From superclass: ArrayedCollection

Strings respond to .at in a manner similar to other indexed collections. Each element is a Char."ABCDEFG".at(2)

### .ascii

Returns an Array of ASCII values of the Strings's characters."wertvoll".ascii // [ 119, 101, 114, 116, 118, 111, 108, 108 ]

Note that if a string contains multi-byte UTF-8 characters, this array will not be of the same length as the number of visible characters, nor will it necessarily be an array of valid 7-bit ASCII values.// "face with tears of joy" is Unicode codepoint U+1F602, which is encoded in UTF-8 as hex value 0xF09F9882 a = "😂"; // although this is one UTF-8 character, it must be stored as 4 Chars because Chars can only hold 1 byte each a.size // 4 (!) a.ascii // [ -16, -97, -104, -126 ] // "wrap(0, 255)" converts these numbers to their unsigned 8-bit values b = a.ascii.wrap(0, 255) // [ 240, 159, 152, 130 ] // if we represent these values in hexidecmial, it's the same as the UTF-8 above: 0xF09F9882 b.collect(_.asHexString(2)) // [ F0, 9F, 98, 82 ]

### Comparing strings

### .compare(aString, ignoreCase: false)

Returns an integer less than, equal to or greater than zero, depending on whether the receiver should be sorted before the argument, is equal to the argument or should be sorted after the argument. This is a case sensitive compare.

### <(aString)

Returns a Boolean whether the receiver should be sorted before the argument."same" < "samf"

### >(aString)

Returns a Boolean whether the receiver should be sorted after the argument."same" > "samf"

### <=(aString)

Returns a Boolean whether the receiver should be sorted before the argument, including the same string."same" <= "same" "same" <= "samf"

### >=(aString)

Returns a Boolean whether the receiver should be sorted after the argument, including the same string."same" >= "same" "same" >= "samf"

### ==(aString)

Returns a Boolean whether the two Strings are equal.

NOTE: This method is (now) case sensitive!

"same" == "same" "same" == "Same"; // false

### !=(aString)

Returns a Boolean whether the two Strings are not equal."same" != "same"; // false "same" != "Same";

### Posting strings

### .post

Prints the string to the current post window."One".post; "Two".post;"";

### .postln

Prints the string and a carriage return to the current post window."One".postln; "Two".postln;"";

### .postc

### .postcln

As -post and -postln, but formatted as a comment."This is a comment.".postcln;

### .postf( ... items)

Prints a formatted string with arguments to the current post window. The % character in the format string is replaced by a string representation of an argument. To print a % character use \\% .postf("this % a %. pi = %, list = %\n", "is", "test", pi.round(1e-4), (1..4)) this is a test. pi = 3.1416, list = [ 1, 2, 3, 4 ]

### .postcs

From superclass: Object

As -postln, but posts the compileString of the receiver.List[1, 2, ["comment", [3, 2]], { 1.0.rand }].postcs;

### .error

Prepends an error banner and posts the string."Do not press this button again".error;

### .warn

Prepends a warning banner and posts the string."Do not press this button again".warn;

### .inform

Legacy method (although due to widespread use, it will not be removed). This is identical to `postln`.

### Interpreting strings as code

### .compile

Compiles a String containing legal SuperCollider code and returns a Function.( var f; f = "2 + 1".compile.postln; f.value.postln; )

### .interpret

Compile and execute a String containing legal SuperCollider code, returning the result."2 + 1".interpret.postln;

### .interpretPrint

Compile, execute and print the result of a String containing legal SuperCollider code."2 + 1".interpretPrint;

### Converting strings

### .asCompileString

Returns a String formatted for compiling.( var f; f = "myString"; f.postln; f.asCompileString.postln; )

### .asSymbol

Return a Symbol derived from the String.( var z; z = "myString".asSymbol.postln; z.class.postln; )

### .asInteger

Return an Integer derived from the String. Strings beginning with non-numeric characters return 0."4".asInteger.postln;

### .asFloat

Return a Float derived from the String. Strings beginning with non-numeric characters return 0."4.3".asFloat.postln;

### .asSecs(maxDays: 365)

Return a Float based on converting a time string in format (ddd):hh:mm:ss.sss. This is the inverse method to SimpleNumber: -asTimeString.(45296.asTimeString).asSecs; "32.1".asSecs; "62.1".asSecs; // warns "0:0:59.9".asSecs; "1:1:1.1".asSecs; "-1".asSecs; // neg sign supported "-12:34:56".asSecs; "12:-34:56".asSecs; // warns "-23:12.3456".asSecs; // "-1:00:00:00".asSecs; // days too.

### Concatenate strings

### ++(anObject)

Return a concatenation of the two strings."hello" ++ "word"

### +(anObject)

Return a concatenation of the two strings with a space between them."hello" + "word"

### +/+(path)

Concatenates `this` and `path`, as components of a filesystem path on the host operating system. The strings are joined to avoid duplicate path separators.

If `this` ends with a path separator and `path` begins with one, then the separator in `path` is dropped. If there is a path separator on either side, this has the same effect as using `++`. If neither side has a path separator, the platform's preferred separator ('\' on Windows, '/' otherwise) is added.

Returns `this` and `path` concatenated. If `path` was a PathName, the result is a PathName; otherwise, it is a String.

#### Arguments:

path | Any object that can be converted to a string. Typically, either a String, Symbol, or PathName.// On Windows, this produces "foo\\bar"; on other platforms, "foo/bar" "foo" +/+ "bar" // On all platforms, this produces "foo/bar": +/+ prefers using an existing separator "foo/" +/+ "bar" "foo" +/+ "/bar" "foo/" +/+ "/bar" // On Windows, this produces "foo\\bar"; on other platforms, "foo/\\bar" "foo" +/+ "\\bar" // Concatenating a symbol is also OK "foo" +/+ 'bar'

### .catArgs( ... items)

Concatenate this string with the following args."These are some args: ".catArgs(\fish, SinOsc.ar, {4 + 3}).postln;

### .scatArgs( ... items)

Same as -catArgs, but with spaces in between."These are some args: ".scatArgs(\fish, SinOsc.ar, {4 + 3}).postln;

### .ccatArgs( ... items)

Same as -catArgs, but with commas in between."a String".ccatArgs(\fish, SinOsc.ar, {4 + 3}).postln;

### .catList(list)

### .scatList(list)

### .ccatList(list)

As -catArgs, -scatArgs and -ccatArgs above, but takes a Collection (usually a List or an Array) as an argument."a String".ccatList([\fish, SinOsc.ar, {4 + 3}]).postln;

### Regular expressions

Note the inversion of the arguments:

- `regexp.matchRegexp(stringToSearch)`
- `stringToSearch.findRegexp(regexp)` (and similar for `findAllRegexp` and `findRegexpAt`).

`findRegexp` follows the pattern established by String: -find, where the receiver is the string to be searched. `matchRegexp` follows the pattern of matchItem, where the receiver is the pattern to match and the first argument is the object to be tested. This is a common source of confusion, but it is based on this precedent.

### .matchRegexp(string, start: 0, end)

POSIX regular expression matching. Returns true if the receiver (a regular expression pattern) matches the string passed to it. The start is an offset where to start searching in the string (default: 0), end where to stop.

NOTE: This is `regexp.matchRegexp(stringToSearch)` and not the other way around! See above: String: Regular expressions.
"c".matchRegexp("abcdefg", 2, 5); // true: substring exists "c".matchRegexp("abcdefg", 4, 5); // false: substring doesn't exist "behaviou?r".matchRegexp("behavior"); // true: character may or may not exist "behaviou?r".matchRegexp("behaviour"); // true: character may or may not exist "behaviou?r".matchRegexp("behavir"); // false: but the rest does not match "behavi(ou)?r".matchRegexp("behavir"); // true: the substring in parens may or may not exist "b.h.v.r".matchRegexp("behavor"); // true "b.h.v.r".matchRegexp("behaviiiiir"); // false: dot stands for exactly one char "b.h.vi*r".matchRegexp("behaviiiiir"); // true: (kleene) star stands for any number of chars preceding, or none "b.h.vi*r".matchRegexp("behavuuuur"); // false "(a|u)nd".matchRegexp("und"); // true "(a|u)nd".matchRegexp("and"); // true "[a-c]nd".matchRegexp("ind"); // false "[a-c]nd".matchRegexp("bnd"); // true: anything between a and c "[a-c]*nd".matchRegexp("accacaccacand"); // true: any combination of x, t, z, or none. "[xtz]+nd".matchRegexp("xnd"); // true: any combination of x, t, z

### .findRegexp(regexp, offset: 0)

POSIX regular expression search."foobar".findRegexp("o*bar"); "32424 334 /**aaaaaa*/".findRegexp("/\\*\\*a*\\*/"); "foobar".findRegexp("(o*)(bar)"); "aaaabaaa".findAllRegexp("a+");

### .findAllRegexp(string, offset: 0)

Like -findAll, but use regular expressions. So unlike findRegexp, it will just return the indices of the"foobar".findAllRegexp("o*bar"); "32424 334 /**aaaaaa*/".findAllRegexp("/\\*\\*a*\\*/"); "foobar".findAllRegexp("(o*)(bar)"); "aaaabaaa".findAllRegexp("a+");

### .findRegexpAt(regexp, offset: 0)

Match a regular expression at the given offset, returning the match and the length of the match in an Array, or nil if it doesn't match. The match must begin right at the offset."foobaroob".findRegexpAt("o*b+", 0); // nil "foobaroob".findRegexpAt("o*b+", 1); // [ oob, 3 ] "foobaroob".findRegexpAt("o*b+", 2); // [ ob, 2 ] "foobaroob".findRegexpAt("o*b+", 3); // [ b, 1 ] "foobaroob".findRegexpAt("o*b+", 4); // nil "foobaroob".findRegexpAt("o*b+", 5); // nil "foobaroob".findRegexpAt("o*b+", 6); // [ oob, 3 ] "foobaroob".findRegexpAt("o*b+", 7); // [ ob, 2 ]

### Searching strings

### .find(string, ignoreCase: false, offset: 0)

Returns the index of the string in the receiver, or nil if not found. If ignoreCase is true, find makes no difference between uppercase and lowercase letters. The offset is the point in the string where the search begins. string may be a String or a Char."These are several words".find("are").postln; "These are several words".find("fish").postln;

### .findBackwards(string, ignoreCase: false, offset: 2147483646)

Same like -find, but starts at the end of the string.// compare: "These words are several words".find("words"); // 6 "These words are several words".findBackwards("words"); // 24

### .findAll(string, ignoreCase: false, offset: 0)

Returns the indices of the string in the receiver, or nil if not found."These are several words which are fish".findAll("are").postln; "These are several words which are fish".findAll("fish").postln;

### .contains(string, offset: 0)

Returns a Boolean indicating if the String contains string."These are several words".contains("are").postln; "These are several words".contains("fish").postln;

### .containsi(string, offset: 0)

Same as -contains, but case insensitive."These are several words".containsi("ArE").postln;

### .containsStringAt(index, string)

Returns a Boolean indicating if the String contains string beginning at the specified index."These are several words".containsStringAt(6, "are").postln;

### .icontainsStringAt(index, string)

Same as -containsStringAt, but case insensitive.

### .beginsWith(string)

### .endsWith(string)

Returns true if this string begins/ends with the specified other string.

#### Arguments:

string | The other string

#### Returns:

A Boolean

### Manipulating strings

### .rotate(n: 1)

Rotate the string by n steps."hello word".rotate(1)

### .scramble

Randomize the order of characters in the string."hello word".scramble

### .replace(find, replace: "")

Like -tr, but with Strings as well as Chars as arguments."Here are several words which are fish".replace("are", "were");

### .format( ... items)

Returns a formatted string with arguments. The % character in the format string is replaced by a string representation of an argument. To print a % character use \\% .format("this % a %. pi = %, list = %\n", "is", "test", pi.round(1e-4), (1..4)) this is a test. pi = 3.1416, list = [ 1, 2, 3, 4 ]

### .escapeChar(charToEscape)

Add the escape character (\) before any character of your choice.// escape spaces: "This will become a Unix friendly string".escapeChar($ ).postln;

### .quote

Return this string enclosed in double-quote ( `"` ) characters."tell your" + "friends".quote + "not to tread onto the lawn"

### .zeroPad

Return this string enclosed in space characters."spaces".zeroPad.postcs;

### .underlined(char: $-)

Return this string followed by dashes in the next line ( `-` )."underlined".underlined; "underlined".underlined($~);

### .tr(from, to)

Transliteration. Replace all instances of from with to.":-(:-(:-(".tr($(, $)); //turn the frowns upside down

### .padLeft(size, string: " ")

### .padRight(size, string: " ")

Pad this string with string so it fills size character.

#### Arguments:

size | Number of characters to fill
string | Padding string"this sentence has thirty-nine letters".padRight(39, "-+"); "this sentence has thirty-nine letters".padLeft(39, "-+"); "this sentence more than thirteen letters".padRight(13, "-+"); // nothing to pad.

### .toUpper

Return this string with uppercase letters."Please, don't be impolite".toUpper;

### .toLower

Return this string with lowercase letters."SINOSC".toLower;

### .stripRTF

Returns a new String with all RTF formatting removed.( // same as File-readAllStringRTF g = File("/code/SuperCollider3/build/Help/UGens/Chaos/HenonC.help.rtf","r"); g.readAllString.stripRTF.postln; g.close; )

### .split(separator: $/)

Returns an Array of Strings split at the separator. The separator is a Char, and is not included in the output array."These are several words".split($ ); // The default separator $/ is handy for Unix paths. "This/could/be/a/Unix/path".split;

### Stream support

### .printOn(stream)

Print the String on stream."Print this on Post".printOn(Post); // equivalent to: Post << "Print this on Post";

### .storeOn(stream)

Same as -printOn, but formatted -asCompileString."Store this on Post".storeOn(Post); // equivalent to: Post <<< "Store this on Post";

### Unix Support

Where relevant, the current working directory is the same as the location of the SuperCollider app and the shell is the Bourne shell (sh). Note that the cwd, and indeed the shell itself, does not persist:"echo $0".unixCmd; // print the shell (sh) "pwd".unixCmd; "cd Help/".unixCmd; "pwd".unixCmd; "export FISH=mackerel".unixCmd; "echo $FISH".unixCmd;

It is however possible to execute complex commands:"pwd; cd Help/; pwd".unixCmd; "export FISH=mackerel; echo $FISH".unixCmd;

Also on os x applescript can be called via osascript:"osascript -e 'tell application \"Safari\" to activate'".unixCmd;

Should you need an environment variable to persist you can use -setenv.

NOTE: Despite the fact that the method is called 'unixCmd', it does work in Windows. The string must be a DOS command, however: "dir" rather than "ls" for instance.

### .unixCmd(action, postOutput: true)

Execute a UNIX command asynchronously using the standard shell (sh).

#### Arguments:

action | A Function that is called when the process has exited. It is passed two arguments: the exit code and pid of the exited process.
postOutput | A Boolean that controls whether or not the output of the process is displayed in the post window.

#### Returns:

An Integer - the pid of the newly created process. Use Integer: -pidRunning to test if a process is alive.

#### Discussion:

Example:"ls Help".unixCmd; "echo one; sleep 1; echo two; sleep 1".unixCmd { |res, pid| [\done, res, pid].postln };

### .unixCmdGetStdOut(maxLineLength: 1024)

Similar to -unixCmd except that the stdout of the process is returned (synchronously) rather than sent to the post window.~listing = "ls Help".unixCmdGetStdOut; // Grab ~listing.reverse.as(Array).stutter.join.postln; // Mangle

### .systemCmd

Executes a UNIX command synchronously using the standard shell (sh).

#### Returns:

Error code of the UNIX command

### .runInTerminal(shell: "/bin/bash")

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/Collections/osx/extString_osx.sc

Execute the String in a new terminal window (asynchronously).

#### Arguments:

shell | The shell used to execute the string.

#### Discussion:

NOTE: On macOS, the string is incorporated into a temporary script file and executed using the shell.

Example:"echo ---------Hello delightful SuperCollider user----------".runInTerminal;

### .setenv(value)

Set the environment variable indicated in the string to equal the String value. This value will persist until it is changed or SC is quit. Note that if value is a path you may need to call -standardizePath on it.// all defs in this directory will be loaded when a local server boots "SC_SYNTHDEF_PATH".setenv("~/scwork/".standardizePath); "echo $SC_SYNTHDEF_PATH".unixCmd;

### .getenv

Returns the value contained in the environment variable indicated by the String."USER".getenv;

### .unsetenv

Set the environment variable to nil.

### .mkdir

Make a directory from the given path location.

### .pathMatch

Returns an Array containing all paths matching this String. Wildcards apply, non-recursive.Post << "Help/*".pathMatch;

### .load

Load and execute the file at the path represented by the receiver.

### .loadPaths(warn: true, action)

Perform -pathMatch on this String, then load and execute all paths in the resultant Array.//first prepare a file with some code... ( File.use("/tmp/loadPaths_example.scd", "w", { |file| file << "\"This text is the result of a postln command which was loaded and executed by loadPaths\".postln;"; file << "\"I will now throw a dice for you: \".post; 7.rand;" }) ) // then load the file... // ... it posts some text, and the return value pf loadPaths is an array of the return values of each file "/tmp/loadPaths_example.scd".loadPaths;

#### Arguments:

warn | Post a warning if path doesn't point to any file.
action | If a function is passed, it is called with each path as argument.

### .loadRelative(warn: true, action)

Load and execute the file at the path represented by the receiver, interpreting the path as relative to the current document or text file. Requires that the file has been saved. This can be used e.g. to load initialization code from files in the same folder.

#### Arguments:

warn | Warn if a file is not found.
action | A function that is called for each file path that is found.

### .resolveRelative

Convert the receiver from a relative path to an absolute path, relative to the current document or text file. Requires that the current text file has been saved. Absolute paths are left untransformed.

### .standardizePath

Expand ~ to your home directory, and resolve aliases on macOS. See PathName for more complex needs. See File: *realpath if you want to resolve symlinks."~/".standardizePath; //This will print your home directory

### .openOS

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/Collections/osx/extString_osx.sc

Open file, directory or URL via the operating system. On macOS this is implemented via `open`, on Linux via `xdg-open` and on Windows via `start`.Platform.userConfigDir.openOS; "http://supercollider.sf.net".openOS;

### Pathname Support

Also see -+/+ for path concatenation.

The term "path separator" is a platform-independent term for the character(s) that can be used to separate components of a path. On Windows, both forward slash "/" and backward slash "\\" are path separators. On POSIX-based systems like macOS and Linux, only forward slash is allowed.

### .shellQuote

Return a new string suitable for use as a filename in a shell command, by enclosing it in single quotes ( `'` ). If the string contains any single quotes they will be escaped.

#### Discussion:

You should use this method on a path before embedding it in a string executed by -unixCmd or -systemCmd.unixCmd("ls " + Platform.userExtensionDir.shellQuote)

NOTE: This works well with shells such as bash, other shells might need different quotation/escaping. Apart from usage in the construction of shell commands, escaping is not needed for paths passed to methods like pathMatch(path) or File.open(path).

### .absolutePath

### .asAbsolutePath

Return this path as an absolute path by prefixing it with File: *getcwd if necessary.

### .asRelativePath(relativeTo)

Return this path as relative to the specified path.

#### Arguments:

relativeTo | The path to make this path relative to.

### .withTrailingSlash

Appends a path separator if one is not already present.

### .withoutTrailingSlash

Removes a trailing path separator if one is present.

### .basename

Return the filename from a Unix path."Imaginary/Directory/fish.rtf".basename;

### .dirname

Return the directory name from a Unix path."Imaginary/Directory/fish.rtf".dirname;

### .splitext

Split off the extension from a filename or path and return both in an Array as [path or filename, extension]."fish.rtf".splitext; "Imaginary/Directory/fish.rtf".splitext;

### YAML and JSON parsing

### .parseYAML

Parse this string as YAML/JSON.

#### Returns:

A nested structure of Arrays (for sequences), Dictionaries (for maps) and Strings (for scalars).

### .parseYAMLFile

Same as `parseYAML` but parse a file directly instead of a string. This is faster than reading a file into a string and then parse it.

### Document Support

### .newTextWindow(title: "Untitled", makeListener: false)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Create a new Document with this."Here is a new Document".newTextWindow;

### .openDocument(selectionStart: 0, selectionLength: 0)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Create a new Document from the path corresponding to this. The selection arguments will preselect the indicated range in the new window. Returns this.( String.filenameSymbol.asString.openDocument(10, 20) )

### .findHelpFile

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Returns the path for the helpfile named this, if it exists, else returns nil."Document".findHelpFile; "foobar".findHelpFile;

### .help

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Performs -findHelpFile on this, and opens the file it if it exists, otherwise opens the main helpfile."Document".help; "foobar".help;

### Misc methods

### .inspectorClass

Returns class StringInspector.

### Drawing Support

The following methods must be called within an Window-drawFunc or a SCUserView-drawFunc function, and will only be visible once the window or the view is refreshed. Each call to Window-refresh SCUserView-refresh will 'overwrite' all previous drawing by executing the currently defined function.

See also: Window, UserView, Color, and Pen.

NOTE: for cross-platform GUIs, use `Pen.stringAtPoint, Pen.stringInRect, Pen.stringCenteredIn, Pen.stringLeftJustIn, Pen.stringRightJustIn` instead.

### .draw

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Draws the String at the current 0@0 Point. If not transformations of the graphics state have taken place this will be the upper left corner of the window. See also Pen.( w = Window.new.front; w.view.background_(Color.white); w.drawFunc = { "abababababa\n\n\n".scramble.draw }; w.refresh )

### .drawAtPoint(point, font, color)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Draws the String at the given Point using the Font and Color specified.( w = Window.new.front; w.view.background_(Color.white); w.drawFunc = { "abababababa\n\n\n".scramble.drawAtPoint( 100@100, Font("Courier", 30), Color.blue(0.3, 0.5)) }; w.refresh; )

### .drawInRect(rect, font, color)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Draws the String into the given Rect using the Font and Color specified.( w = Window.new.front; r = Rect(100, 100, 100, 100); w.view.background_(Color.white); w.drawFunc = { "abababababa\n\n\n".scramble.drawInRect(r, Font("Courier", 12), Color.blue(0.3, 0.5)); Pen.strokeRect(r); }; w.refresh; )

### .drawCenteredIn(rect, font, color)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Draws the String into the given Rect using the Font and Color specified.( w = Window.new.front; w.view.background_(Color.white); r = Rect(100, 100, 100, 100); w.drawFunc = { "abababababa\n\n\n".scramble.drawCenteredIn( r, Font("Courier", 12), Color.blue(0.3, 0.5) ); Pen.strokeRect(r); }; w.refresh; )

### .drawLeftJustIn(rect, font, color)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Draws the String into the given Rect using the Font and Color specified.( w = Window.new.front; w.view.background_(Color.white); r = Rect(100, 100, 100, 100); w.drawFunc = { "abababababa\n\n\n".scramble.drawLeftJustIn( r, Font("Courier", 12), Color.blue(0.3, 0.5) ); Pen.strokeRect(r); }; w.refresh; )

### .drawRightJustIn(rect, font, color)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Draws the String into the given Rect using the Font and Color specified.( w = Window.new.front; w.view.background_(Color.white); r = Rect(100, 100, 100, 100); w.drawFunc = { "abababababa\n\n\n".scramble.drawRightJustIn( r, Font("Courier", 12), Color.blue(0.3, 0.5) ); Pen.strokeRect(r); }; w.refresh; )

### .bounds(font)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

Tries to return a Rect with the size needed to fit this string if drawn with given font.

#### Arguments:

font | A Font

### Extensions by SCDoc

### .stripWhiteSpace

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/SCDoc/SCDoc.sc

Strips whitespace at the beginning and end of the string.

#### Returns:

The stripped string

### .unixCmdGetStdOutLines

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/SCDoc/SCDoc.sc

Like -unixCmdGetStdOut but returns the lines in an Array instead.

#### Returns:

an Array of each line of output

### Extensions by wslib

### .notesDict

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

#### Returns:

Same as String: *notesDict.

### .namemidi(cents)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

Converts a note name to a MIDI note pitch.

#### Arguments:

cents | Number of cents to adjust

#### Returns:

Float corresponding to a MIDI note pitch

#### Discussion:

"G2".namemidi; // -> 55 "Bbb4".namemidi(7); // -> 81.07

### .getAlt

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

#### Returns:

-1 / 1 / 2 if the String contains `b` / `#` / `x` respectively, or 0 otherwise.

#### Discussion:

Memoizes the result."G2".namemidi; // -> 55 "Bbb4".namemidi(7); // -> 81.07

### .getOctave

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

#### Returns:

Integer corresponding to the numerical component of the note.

#### Discussion:

Does not take into account accidentals shifting the pitch into a different octave. This is probably a bug!

Memoizes the result."C3".getOctave; // -> 3 "Cb3".getOctave; // -> 3 "B#4".getOctave; // -> 4

### .getNote

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

#### Returns:

uppercase Char corresponding to first character of the string

#### Discussion:

"F#2".getNote.class; // -> Char "F#2".getNote // -> $F "f#2".getNote // -> $F

### .asNote(cents)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-asNote.sc

#### Returns:

Note whose pitch is described by the given string

#### Discussion:

"G#2".asNote.class; // -> Note "A3".asNote.freq; // -> 440

### Inherited instance methods

### Undocumented instance methods

### .absolutePath2(base)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .afp(login, password, volume)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .appleScript

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-appleScript.sc

### .asAppleScriptCmd

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-appleScript.sc

### .asColor(alpha: 1)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .asDefName

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/Control/asDefName.sc

### .asFileSafeString

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Players/pathUtilities.sc

### .asHexIfPossible(else)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-couldBeNumber.sc

### .asInstr

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

### .asInterfaceDef

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

### .asKeyStrokeCmd(mod, app: "SuperCollider")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-appleScript.sc

### .asMenuAction

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/Base/Menu.sc

### .asNumberIfPossible

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-couldBeNumber.sc

### .asOSCArgArray

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/Control/extConvertToOSC.sc

### .asOSCArgEmbeddedArray(array)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/Control/extConvertToOSC.sc

### .asPathName

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extPathName-realNextName.sc

### .asPenFunction

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .asSSHCmd(login, addr)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-asSSHCmd.sc

### .asSVGTransform

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .asSeconds(fps: 25)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SMPTE/extNumber-asSMPTEString.sc

### .asString

### .asUnicode

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-collection.sc

### .asWebColorString(default)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .asciiCorrect

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-asciiCorrect.sc

### .ask(function)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Full windows/extVarious-SCAlert.sc

### .boundsM9(origin)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .capsToSpaces(space: " ", toLower: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .clipPath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .clipToRectM9(rect, clipSign: "", allowHeight: 4, allowWidth: 0)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .codegen_UGenCtorArg(stream)

### .collectJoin(function, joiner)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### .convertImage(newFormat: "jpg", newName: 'auto')

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-imagefiles.sc

### .copyFile(newPath, overwrite: false, createIfNotThere: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .copyRename(newDir: "", newName, createIfNotThere: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .copyReplace(newDir: "", newName, createIfNotThere: true, toTrash: true, ask: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .copyTo(newDir: "", newName, overwrite: false, createIfNotThere: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .copyToDesktop

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .copyToDir(newDir: "", overwrite: false, createIfNotThere: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .copyTo_scwork

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .couldBeHex

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-couldBeNumber.sc

### .couldBeNumber

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-couldBeNumber.sc

### .create_scwork

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .curl(path, options, action, postOutput: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-curl.sc

### .curlMsg(path, options)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-curl.sc

### .deStandardizePath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-deStandardizePath.sc

### .die( ... culprits)

### .digit

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-collection.sc

### .digit2roman

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/digit2roman.sc

### .dirLevel

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-getPathsInDirectory.sc

### .doToNumbers(func)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .downloadCVSSource(login: "anonymous", password: "", server: "cvs.sourceforge.net", root: "/cvsroot/supercollider", repository: "SuperCollider3")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .downloadSVNSource(folderName: "SuperCollider3", repos: "https://svn.sourceforge.net/svnroot/supercollider/trunk")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .downloadURL(to)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .drawAtPointM9(point, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawCenteredInM9(inRect, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawInRectM9(rect, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawLeftJustInM9(inRect, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawM9(color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawRightJustInM9(inRect, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawStretchedIn(inRect, font, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .drawStretchedInM9(inRect, color)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-boundsM9.sc

### .enpath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Players/pathUtilities.sc

### .exclude

### .extension

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .extractNumbers

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .fformat( ... args)

### .fillPath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .findHelpFileOrElse

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

### .findPathsInDirectory(wordToFind: "", extension, nLevels, includeInPath: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-getPathsInDirectory.sc

### .findReplace(findString, replaceString: "", ignoreCase: false, offset: 0)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-findReplace.sc

### .findReplaceAll(findString, replaceString: "", ignoreCase: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-findReplace.sc

### .findSubDirectories(wordToFind: "", nLevels, includeInPath: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-getPathsInDirectory.sc

### .firstIsLower

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .firstIsUpper

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .firstToLower

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .firstToUpper

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .flac(level: 5, newDir, deleteInputFile: false, flacLocation: "/usr/local/bin/")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .flacAll(level: 5, newDir, extensions, deleteInputFiles: false, flacLocation: "/usr/local/bin/")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .flatNoString

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .folderContents(levels: inf)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .forceNoteName(toName: $C, maxAlt: 12)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .getHostIP

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .getPathsInDirectory(extension, nLevels, includeInPath: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-getPathsInDirectory.sc

### .getSubDirectories(nLevels, includeInPath: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-getPathsInDirectory.sc

### .getUnits(default)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .gethostbyname

### .guiClass

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/tools/guicrucial/gui.sc

### .guiDocument

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Players/pathUtilities.sc

### .gz(speed: 6)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .hasExtension

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .include

### .insert(index, string)

### .instr( ... args)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

### .interpretVal

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .isBundle

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .isBundlePath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .isFile

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .isFolder

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .isSoundFile

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .isString

### .isValidExtension

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .keyStroke(mod, app: "SuperCollider")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-appleScript.sc

### .loadDocument(warnIfNotFound: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Players/pathUtilities.sc

### .loadPath(warnIfNotFound: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/crucial-library/Players/pathUtilities.sc

### .makeDir(silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .makeScale(type: 'major', startNote, endNote)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .makeScaleCps(type: 'major', startNote, endNote)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .makeScaleMidi(type: 'major', startNote, endNote)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .makeScaleName(type: 'major', startNote, endNote)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .moveRename(newDir: "", newName, createIfNotThere: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .moveReplace(newDir: "", newName, createIfNotThere: true, toTrash: true, ask: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .moveTo(newDir: "", newName, createIfNotThere: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .moveToDir(to, createIfNotThere: false, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .multiChannelPerform(selector ... args)

### .namecps(cents)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .namename(cents, sign)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .nametransp(trans)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .namevoicetype(type, language: 'en', filter)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .notemidi

From extension in /Users/zzk/Library/Application Support/SuperCollider/Extensions/SC3plugins/LoopBufUGens/classes/LJP Classes/Extensions/midinote.sc

### .numbersToAlpha(offset: 0, toUpper: true, prepend: "", append: "")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .openHTMLFile(selectionStart: 0, selectionLength: 0)

From extension in /Applications/SuperCollider.app/Contents/Resources/SCClassLibrary/Common/GUI/PlusGUI/Collections/StringPlusGUI.sc

### .openInFinder

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .openServer(login, password, volume)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .openWith(appName: "SuperCollider")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .openWithID(id: "com.apple.safari")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .pad(char: $', amt: 1)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .pathExists(showType: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .performBinaryOpOnComplex(aSelector, aComplex)

### .performBinaryOpOnSimpleNumber(aSelector, aNumber)

### .postlnIfTrue(bool: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .ps2pdf(newPath, removePS: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/ColPen/extColPen-PostScript.sc

### .realNextName

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extPathName-realNextName.sc

### .realPath

### .removeBrackets

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### .removeExtension

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .removeFile(toTrash: true, ask: true, silent: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .removeFwdSlash

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .removeItems(items: " ")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### .removeNumbers

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .renameTo(newName)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .replaceAt(replaceString, pos: 0, size)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/extString-findReplace.sc

### .replaceBrackets(replaceWith: "[]")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### .replaceExtension(newExt)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .replaceItems(items: " ", replaceWith: " ")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### .replaceSpaces(replaceWith: "_")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Improvements/extString-collect.sc

### .replaceWith(inPath, createIfNotThere: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .request(function, question: "Please enter string:")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Full windows/extVarious-SCAlert.sc

### .resampleImage(newMaxSize: 600, newName: 'auto')

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-imagefiles.sc

### .revealInFinder

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-revealInFinder.sc

### .roman2digit

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Extensions/String/digit2roman.sc

### .rotateImage(degreesCW: 90, newName: 'auto')

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-imagefiles.sc

### .showInFinder

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .spacesToCaps(space: " ")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .spath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Shortcuts/extString-spth.sc

### .splitNumbers(convert: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .spth

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Lang/Shortcuts/extString-spth.sc

### .sshCmd(login, addr, perform: 'unixCmd')

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-asSSHCmd.sc

### .sshRunInTerminal(login, addr)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-asSSHCmd.sc

### .sshSystemCmd(login, addr)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-asSSHCmd.sc

### .stripHTML

### .strokePath

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/SVGFile/extVarious-SVGFile.sc

### .tar(newPath)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .targz(newPath, speed: 6)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .testnamemidi(ifTrue: true, ifFalse: false, cents: 0)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .tgz(newPath, speed: 6)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .trim(whatToTrim: " ")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .trimLeft(whatToTrim: " ")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .trimRight(whatToTrim: " ")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-nameconversion.sc

### .trynamecps(cents, default: "C3")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .trynamemidi(cents, default: "C3")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .trynamename(cents, sign, default)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/Note/extVarious-midiname.sc

### .ugenCodeString(ugenIndex, isDecl, inputNames: [ ], inputStrings: [ ])

### .unflac(format: 'wav', newDir, deleteInputFile: false, flacLocation: "/usr/local/bin/")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .unflacAll(format: 'wav', newDir, deleteInputFiles: false, flacLocation: "/usr/local/bin/")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .ungz

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .untar

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .untgz(deleteTar: false)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .unzip(to)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .updateCVSSource

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc

### .wrapExtend(size)

### .write(fileName, overwrite: false, ask: true)

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/GUI/Full windows/extVarious-SCAlert.sc

### .zip(newPath, includeInvisible: false, tmp: "/tmp")

From extension in /Users/zzk/Library/Application Support/SuperCollider/downloaded-quarks/wslib/wslib-classes/Main Features/File management/extString-fileManagement.sc
helpfile source: /Applications/SuperCollider.app/Contents/Resources/HelpSource/Classes/String.schelp
link::Classes/String::