Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
88 lines (74 loc) · 7.77 KB

cp.plist.md

File metadata and controls

88 lines (74 loc) · 7.77 KB

docs » cp.plist


Reads & Writes plist data.

Submodules

API Overview

API Documentation

Functions

| Signature | cp.plist.base64ToTable(base64Data) -> table | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts base64 encoded Property List string into a Table. | | Parameters |

  • base64Data - Binary data encoded in base64 as a string
| | Returns |
  • A table of the plist data
  • A error message as string if an error occurs
|

| Signature | cp.plist.binaryFileToTable(plistFileName) -> table | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts the data from a Binary File into a LUA Table. | | Parameters |

  • plistFileName - Path & Filename of the Binary File
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.binaryFileToXML(plistFileName) -> string | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts the data from a Binary plist File into XML as a string. | | Parameters |

  • plistFileName - Path & Filename of the Binary File
| | Returns |
  • data - A string of XML data
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.binaryToTable(binaryData) -> table | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts Binary Data into a LUA Table. | | Parameters |

  • binaryData - Binary data
| | Returns |
  • data - A string of XML data
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.fileToTable(plistFileName) -> table | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts plist data from a binary or XML file into a LUA Table. | | Parameters |

  • plistFileName - Path & Filename of the XML File
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|

Signature cp.plist.isBinaryPlist(plistList) -> boolean
Type Function
Description Returns true if plistList is a binary plist file otherwise false
Parameters
  • plistList - Path to the file
Returns
  • Boolean

| Signature | cp.plist.xmlFileToTable(plistFileName) -> table | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts XML data from a file into a LUA Table. | | Parameters |

  • plistFileName - Path & Filename of the XML File
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|

| Signature | cp.plist.xmlToTable(plistXml) -> table | nil, string | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Converts an XML plist string into a LUA Table. | | Parameters |

  • plistXml - The XML string
| | Returns |
  • data - A table of plist data, or nil if there was a problem.
  • err - The error message, or nil if there were no problems.
|