Permalink
Browse files

Formatting fixes :) (func~x -> func ~x)

  • Loading branch information...
1 parent 6235cf5 commit cb74fe4fcd3a08e90b889ca9d6f00fe3e98317c4 @duckinator committed Nov 28, 2011
View
@@ -434,7 +434,7 @@ Buffer: class extends Iterable<Char> {
/** return *true* if *this* contains the string *s* */
contains?: func ~buf (s: This) -> Bool { indexOf(s) != -1 }
- trim: func~pointer(s: Char*, sLength: SizeT) {
+ trim: func ~pointer(s: Char*, sLength: SizeT) {
trimRight(s, sLength)
trimLeft(s, sLength)
}
View
@@ -170,7 +170,7 @@ CString: cover from Char* {
/** Create a new string exactly *length* characters long (without the nullbyte).
The contents of the string are undefined. */
- new: static func~withLength (length: Int) -> This {
+ new: static func ~withLength (length: Int) -> This {
result := gc_malloc(length + 1) as Char*
result[length] = '\0'
result as This
View
@@ -117,7 +117,7 @@ raise: func(msg: String) {
Exception new(msg) throw()
}
-raise: func~withClass(clazz: Class, msg: String) {
+raise: func ~withClass(clazz: Class, msg: String) {
Exception new(clazz, msg) throw()
}
View
@@ -325,7 +325,7 @@ getEntityInfo: inline func (info: FSInfoStruct@, va: VarArgsIterator*, start: Ch
}
-format: func~main <T> (fmt: T, args: ... ) -> T {
+format: func ~main <T> (fmt: T, args: ... ) -> T {
if (args count == 0) return fmt
res := Buffer new(512)
va := args iterator()
View
@@ -148,7 +148,7 @@ String: class extends Iterable<Char> {
contains?: func ~string (s: This) -> Bool { _buffer contains?(s _buffer) }
- trim: func~pointer(s: Char*, sLength: SizeT) -> This {
+ trim: func ~pointer(s: Char*, sLength: SizeT) -> This {
result := _buffer clone()
result trim~pointer(s, sLength)
result toString()
@@ -361,7 +361,7 @@ strArrayListFromCString: func (argc: Int, argv: Char**) -> ArrayList<String> {
result
}
-strArrayListFromCString: func~hack (argc: Int, argv: String*) -> ArrayList<String> {
+strArrayListFromCString: func ~hack (argc: Int, argv: String*) -> ArrayList<String> {
strArrayListFromCString(argc, argv as Char**)
}
View
@@ -23,7 +23,7 @@ List: abstract class <T> extends BackIterable<T> {
* Inserts the specified element at the specified position in
* this list.
*/
- add: abstract func~withIndex(index: SSizeT, element: T)
+ add: abstract func ~withIndex(index: SSizeT, element: T)
/**
* Appends all of the elements in the specified Collection to the
@@ -106,19 +106,19 @@ StringTokenizer: class extends Iterable<String> {
splitted: ArrayList<String>
index := 0
- init: func~withCharWithoutmaxTokens(input: String, delim: Char) {
+ init: func ~withCharWithoutmaxTokens(input: String, delim: Char) {
init~withChar(input, delim, -1)
}
- init: func~withStringWithoutmaxTokens(input: String, delim: String) {
+ init: func ~withStringWithoutmaxTokens(input: String, delim: String) {
init~withString(input, delim, -1)
}
- init: func~withChar(input: String, delim: Char, maxTokens: SSizeT) {
+ init: func ~withChar(input: String, delim: Char, maxTokens: SSizeT) {
init~withString(input, delim toString(), maxTokens)
}
- init: func~withString(input, delim: String, maxTokens: SSizeT) {
+ init: func ~withString(input, delim: String, maxTokens: SSizeT) {
splitted = input split(delim, maxTokens)
}
@@ -62,11 +62,11 @@ Target: class {
return is64() ? "64" : "32"
}
- toString: static func~defaults -> String {
+ toString: static func ~defaults -> String {
return toString(getArch())
}
- toString: static func~defaultsWithArch (arch: String) -> String {
+ toString: static func ~defaultsWithArch (arch: String) -> String {
return toString(guessHost(), arch)
}
@@ -4,11 +4,11 @@ import Gcc
* Clang (C-language, LLVM-based) Compiler
*/
Clang: class extends Gcc {
- init: func~withClang(){
+ init: func ~withClang(){
super("clang")
}
clone: func() -> This {
return Clang new()
}
-}
+}
@@ -7,7 +7,7 @@ import BaseCompiler
*/
Gcc: class extends BaseCompiler {
- init: func~withGcc {
+ init: func ~withGcc {
super("gcc")
}
@@ -6,7 +6,7 @@ import Gcc
* @author Amos Wenger
*/
Icc: class extends Gcc {
- init: func~withIcc(){
+ init: func ~withIcc(){
super("icc")
}
@@ -18,4 +18,4 @@ Icc: class extends Gcc {
clone: func() -> This {
return Icc new()
}
-}
+}
@@ -6,7 +6,7 @@ import Gcc
* @author Amos Wenger
*/
Tcc: class extends Gcc {
- init: func~withTcc(){
+ init: func ~withTcc(){
super("tcc")
}
@@ -26,4 +26,4 @@ Tcc: class extends Gcc {
clone: func() -> This {
return Tcc new()
}
-}
+}

0 comments on commit cb74fe4

Please sign in to comment.