Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CFMutableStringMBS.AppendCFStringMBS(s as CFStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Appends the given CFStringMBS.

Feedback, Comments & Corrections

CFMutableStringMBS.AppendString(s as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Appends the given REALbasic String.

Feedback, Comments & Corrections

CFMutableStringMBS.Capitalize
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Changes the first character represented by a CFStringMBS object to uppercase (if it is a lowercase alphabetical character).

Feedback, Comments & Corrections

CFMutableStringMBS.Delete(pos as Integer,len as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Deletes a range of characters in a mutable CFStringMBS object.

Feedback, Comments & Corrections

CFMutableStringMBS.Insert(index as Integer,s as CFStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Inserts a string at a specified location in the character buffer of a mutable CFStringMBS object.

Feedback, Comments & Corrections

CFMutableStringMBS.LocalizedCapitalize(LocaleIdentifier as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin 18.2 Yes No No Yes, macOS only No
Function: Localized capitalize.
Notes:
Locale identifier can be "de", "de_DE" or "German" style.
Raises RaiseUnsupportedOperationException if locale identifier is not known.

Feedback, Comments & Corrections

CFMutableStringMBS.LocalizedLowercase(LocaleIdentifier as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin 18.2 Yes No No Yes, macOS only No
Function: Localized lowercase.
Notes:
Locale identifier can be "de", "de_DE" or "German" style.
Raises RaiseUnsupportedOperationException if locale identifier is not known.

Feedback, Comments & Corrections

CFMutableStringMBS.LocalizedUppercase(LocaleIdentifier as String)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin 18.2 Yes No No Yes, macOS only No
Function: Localized uppercase.
Example:
dim m1 as new CFMutableStringMBS("i")
dim m2 as new CFMutableStringMBS("i")

m1.Uppercase
m2.LocalizedUppercase("Turkish")

MsgBox m1.Str+EndOfLine+m2.Str
// shows to variants of capital I
Notes:
Locale identifier can be "de", "de_DE" or "German" style.
Raises RaiseUnsupportedOperationException if locale identifier is not known.

Feedback, Comments & Corrections

CFMutableStringMBS.Lowercase
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Changes all uppercase alphabetical characters in a mutable CFStringMBS to lowercase.

Feedback, Comments & Corrections

CFMutableStringMBS.Normalize(NormalizationForm as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin 4.3 Yes No No Yes, macOS only No
Function: Normalizes the string into the specified form as described in Unicode Technical Report #15.
Example:
const kCFStringNormalizationFormD  = 0 // Canonical Decomposition
const kCFStringNormalizationFormKD = 1 // Compatibility Decomposition
const kCFStringNormalizationFormC = 2 // Canonical Decomposition followed by Canonical Composition
const kCFStringNormalizationFormKC = 3 // Compatibility Decomposition followed by Canonical Composition

dim s as CFStringMBS
dim m as CFMutableStringMBS

s=NewCFStringMBS("Hello é")
m=s.Normalize(kCFStringNormalizationFormD)

MsgBox str(s.Len)+" "+str(m.len)

// decomposed the length is one more.
Notes: Requires Mac OS X 10.2 or newer.

Feedback, Comments & Corrections

CFMutableStringMBS.Pad(padstr as CFStringMBS,len as Integer,indexIntoPad as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Enlarges the string represented by a CFStringMBS object, padding it with specified characters, or truncates the string.
Notes:
The CFStringMBS.Pad function has two purposes. It either enlarges the character buffer of a mutable CFStringMBS object to a given length, padding the added length with a given character or characters, or it truncates the character buffer to a smaller size. The key parameter for this behavior is the length parameter; if it is greater than the current length of the represented string, padding takes place, and if it less than that length, truncation occurs.

For example, say you have a mutable CFStringMBS ( aMutStr ) containing the characters "abcdef". The call

CFStringMBS.Pad(newcfstring(". "), 12, 1)

results in aMutStr containing "abcdef . . .". However, the following call

CFStringMBS.Pad( nil, 3, 0)

results in aMutStr containing "abc".

Feedback, Comments & Corrections

CFMutableStringMBS.Replace(newstr as CFStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Replaces the content of this CFMutableStringMBS with the one from newstr.

See also:

Feedback, Comments & Corrections

CFMutableStringMBS.Replace(pos as Integer,len as Integer,newstr as CFStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Replaces the substring with the given range of this CFMutableStringMBS with the one from newstr.

See also:

Feedback, Comments & Corrections

CFMutableStringMBS.Trim
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Trims whitespace from the beginning and end of the characters represented by a mutable CFStringMBS object.

See also:

Feedback, Comments & Corrections

CFMutableStringMBS.Trim(trimchar as CFStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Trims a specified substring from the beginning and end of the character contents represented by a mutable CFStringMBS object.

See also:

Feedback, Comments & Corrections

CFMutableStringMBS.Truncate(len as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: If the string is longer than len, it is truncated to len.

Feedback, Comments & Corrections

CFMutableStringMBS.Uppercase
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: Changes all lowercase alphabetical characters in a mutable CFStringMBS object to uppercase.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacCF Plugin.




Links
MBS Xojo Plugins