Platforms to show: All Mac Windows Linux Cross-Platform
RemoveAccentsMBS(text as string, IgnoreCase as boolean = false) as string
Function:
Removes accents from text.
Example:
Notes:
Optionally also ignores case and outputs text in capital letters.
The plugin has a long replacement list of unicode code points to do this.
Useful as a preparation to convert to ASCII text, so all accents are removed before conversion.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | String | MBS Util Plugin | 12.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Example:
dim s as string = "L'élève préféré"
dim a as string = RemoveAccentsMBS(s)
dim b as string = RemoveAccentsMBS(s, true)
// check values in debugger
Dim x As String = RemoveAccentsMBS("` ‘ ’ • \¶ ¨ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ø ù ú û ü ý þ ÿ ¼ ½ ¾ ⅓ ⅔ ⅕ ⅖ ⅗ ⅘ ⅙ ⅚ ⅐ ⅛ ⅜ ⅝ ⅞ ⅑ ⅒ ↉")
Break
Optionally also ignores case and outputs text in capital letters.
The plugin has a long replacement list of unicode code points to do this.
Useful as a preparation to convert to ASCII text, so all accents are removed before conversion.
Blog Entries
- MBS Xojo Plugins, version 22.2pr5
- MBS SQLite Extension in version 1.5
- MBS Xojo Plugins, version 18.5pr2
- MBS Xojo Plugins, version 18.2pr1
- MBS Real Studio Plugins, version 12.2pr6
- MBS Real Studio Plugins, version 12.0pr4
- [ANN] MonkeyBread Software starts plug-in development for REAL Server
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Util Plugin.
