fetch ongoing matches and put them into the list

This commit is contained in:
Felix Förtsch
2018-10-09 00:30:51 +02:00
parent 3c528e2f58
commit d13b993b21
88 changed files with 17316 additions and 2424 deletions
+24
View File
@@ -0,0 +1,24 @@
//
// 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
}