Android Programming Press on the image to return to the main documentation page.

iStringUtils

List of types:

StringUtils

StringUtils

iStringUtils.h
iStringUtils

Created by b4j on 9/2/14.
Copyright (c) 2014 Anywhere Software. All rights reserved.

Events:

None

Members:


  DecodeBase64 (Data As String) As Byte()

  DecodeUrl (TextToDecode As String, CharSet As String) As String

  EncodeBase64 (Data() As Byte) As String

  EncodeUrl (TextToEncode As String, CharSet As String) As String

  LoadCSV (Dir As String, FileName As String, SeparatorChar As Char) As List

  LoadCSV2 (Dir As String, FileName As String, SeparatorChar As Char, Headers As List) As List

  SaveCSV (Dir As String, FileName As String, SeparatorChar As Char, Table As List)

  SaveCSV2 (Dir As String, FileName As String, SeparatorChar As Char, Table As List, Headers As List)

Members description:

DecodeBase64 (Data As String) As Byte()
Decodes data from Base64 string.
DecodeUrl (TextToDecode As String, CharSet As String) As String
Decodes an application/x-www-form-urlencoded string.
EncodeBase64 (Data() As Byte) As String
Encodes the given bytes array into Base64 notation.
Example:
Dim su As StringUtils
Dim encoded As String = su.EncodeBase64(data) 'data is a bytes array
EncodeUrl (TextToEncode As String, CharSet As String) As String
Encodes a string into application/x-www-form-urlencoded format.
LoadCSV (Dir As String, FileName As String, SeparatorChar As Char) As List
Loads a CSV file and stores it in a list of string arrays.
Dir - CSV file folder.
FileName - CSV file name.
SeparatorChar - The fields separator character.
Example:
Dim su As StringUtils
Dim Table As List
Table = su.LoadCSV(File.DirDocuments, "1.csv", ",")
LoadCSV2 (Dir As String, FileName As String, SeparatorChar As Char, Headers As List) As List
Similar to LoadCSV. Will load the first row to the headers list.
SaveCSV (Dir As String, FileName As String, SeparatorChar As Char, Table As List)
Saves the table as a CSV file.
Dir - Output file folder.
FileName - Output file name.
SeparatorChar - The fields separator character.
Table - A List with arrays of strings as items. Each array represents a row. All arrays should be of the same length.
Example:
Dim su As StringUtils
su.SaveCSV(File.DirDocuments, "1.csv", ",", table)
SaveCSV2 (Dir As String, FileName As String, SeparatorChar As Char, Table As List, Headers As List)
Similar to SaveCSV. Will save the headers list as the first row. This should be a list of strings.
Top