A small menubar app that allows you to switch between R versions quickly (if you have multiple versions of R framework installed).
https://rud.is/rswitch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
624 B
24 lines
624 B
//
|
|
// DataUtil.swift
|
|
// SwifSoup
|
|
//
|
|
// Created by Nabil Chatbi on 02/10/16.
|
|
// Copyright © 2016 Nabil Chatbi.. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/**
|
|
* Internal static utilities for handling data.
|
|
*
|
|
*/
|
|
class DataUtil {
|
|
|
|
static let charsetPattern = "(?i)\\bcharset=\\s*(?:\"|')?([^\\s,;\"']*)"
|
|
static let defaultCharset = "UTF-8" // used if not found in header or meta charset
|
|
static let bufferSize = 0x20000 // ~130K.
|
|
static let UNICODE_BOM = 0xFEFF
|
|
static let mimeBoundaryChars = "-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
static let boundaryLength = 32
|
|
|
|
}
|
|
|