summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java
index ed953f8a9c..abf81f2475 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSString.java
@@ -16,7 +16,7 @@ public NSString() {
super();
}
-public NSString(int /*long*/ id) {
+public NSString(long /*int*/ id) {
super(id);
}
@@ -42,19 +42,19 @@ public static NSString stringWith(String str) {
return stringWithCharacters(buffer, buffer.length);
}
-public int /*long*/ UTF8String() {
+public long /*int*/ UTF8String() {
return OS.objc_msgSend(this.id, OS.sel_UTF8String);
}
-public int /*long*/ characterAtIndex(int /*long*/ index) {
+public long /*int*/ characterAtIndex(long /*int*/ index) {
return OS.objc_msgSend(this.id, OS.sel_characterAtIndex_, index);
}
-public int /*long*/ compare(NSString string) {
+public long /*int*/ compare(NSString string) {
return OS.objc_msgSend(this.id, OS.sel_compare_, string != null ? string.id : 0);
}
-public int /*long*/ fileSystemRepresentation() {
+public long /*int*/ fileSystemRepresentation() {
return OS.objc_msgSend(this.id, OS.sel_fileSystemRepresentation);
}
@@ -66,8 +66,8 @@ public void getCharacters(char[] buffer, NSRange aRange) {
OS.objc_msgSend(this.id, OS.sel_getCharacters_range_, buffer, aRange);
}
-public NSString initWithCharacters(char[] characters, int /*long*/ length) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_initWithCharacters_length_, characters, length);
+public NSString initWithCharacters(char[] characters, long /*int*/ length) {
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_initWithCharacters_length_, characters, length);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
@@ -76,81 +76,81 @@ public boolean isEqualToString(NSString aString) {
}
public NSString lastPathComponent() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_lastPathComponent);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_lastPathComponent);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
-public int /*long*/ length() {
+public long /*int*/ length() {
return OS.objc_msgSend(this.id, OS.sel_length);
}
public NSString lowercaseString() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_lowercaseString);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_lowercaseString);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString pathExtension() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_pathExtension);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_pathExtension);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public static NSString string() {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_string);
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_string);
return result != 0 ? new NSString(result) : null;
}
-public NSString stringByAddingPercentEscapesUsingEncoding(int /*long*/ enc) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAddingPercentEscapesUsingEncoding_, enc);
+public NSString stringByAddingPercentEscapesUsingEncoding(long /*int*/ enc) {
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAddingPercentEscapesUsingEncoding_, enc);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString stringByAppendingPathComponent(NSString str) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingPathComponent_, str != null ? str.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingPathComponent_, str != null ? str.id : 0);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString stringByAppendingPathExtension(NSString str) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingPathExtension_, str != null ? str.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingPathExtension_, str != null ? str.id : 0);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString stringByAppendingString(NSString aString) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingString_, aString != null ? aString.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByAppendingString_, aString != null ? aString.id : 0);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString stringByDeletingLastPathComponent() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByDeletingLastPathComponent);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByDeletingLastPathComponent);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString stringByDeletingPathExtension() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByDeletingPathExtension);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByDeletingPathExtension);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
public NSString stringByReplacingOccurrencesOfString(NSString target, NSString replacement) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByReplacingOccurrencesOfString_withString_, target != null ? target.id : 0, replacement != null ? replacement.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByReplacingOccurrencesOfString_withString_, target != null ? target.id : 0, replacement != null ? replacement.id : 0);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
-public NSString stringByReplacingPercentEscapesUsingEncoding(int /*long*/ enc) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_stringByReplacingPercentEscapesUsingEncoding_, enc);
+public NSString stringByReplacingPercentEscapesUsingEncoding(long /*int*/ enc) {
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_stringByReplacingPercentEscapesUsingEncoding_, enc);
return result == this.id ? this : (result != 0 ? new NSString(result) : null);
}
-public static NSString stringWithCharacters(char[] characters, int /*long*/ length) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithCharacters_length_, characters, length);
+public static NSString stringWithCharacters(char[] characters, long /*int*/ length) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithCharacters_length_, characters, length);
return result != 0 ? new NSString(result) : null;
}
public static NSString stringWithFormat(NSString format) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithFormat_, format != null ? format.id : 0);
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithFormat_, format != null ? format.id : 0);
return result != 0 ? new NSString(result) : null;
}
-public static NSString stringWithUTF8String(int /*long*/ nullTerminatedCString) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithUTF8String_, nullTerminatedCString);
+public static NSString stringWithUTF8String(long /*int*/ nullTerminatedCString) {
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSString, OS.sel_stringWithUTF8String_, nullTerminatedCString);
return result != 0 ? new NSString(result) : null;
}