Private Sub CreateCountryText(country As String, prefix As String) As Object 'ignore
#if B4J
Return country
#Else if B4i or B4A
Dim cs As CSBuilder
Dim x As Int = country.ToLowerCase.IndexOf(prefix)
If x = -1 Then
Return cs.Initialize.Color(xui.Color_Black).Append(country).Popall
End If
cs.Initialize.Append(country.SubString2(0, x)).Color(HighlightTextColor).Append(country.SubString2(x, x + prefix.Length)).Pop
Return cs.Append(country.SubString(x + prefix.Length))
#End If
End Sub