Documentation
¶
Overview ¶
********************************************************************** MicroCore Copyright 2020 - 2024 by Danyil Dobryvechir (dobrivecher@yahoo.com ddobryvechir@gmail.com) ***********************************************************************
Index ¶
- Variables
- func AddNonRepeatingWords(s string, oldList, newList []string, imap map[string]int, plain, joiner string) string
- func AddStringListWithoutRepeats(src []string, newList []string) []string
- func CalculateStringCheckSum(data string) int64
- func CheckSimplePrefixedWords(list []string, prefix string) bool
- func CheckSimplePrefixedWordsWithDash(list []string, prefix string) bool
- func ComposeParametersInTemplate(template string, brackets int, value string) (res map[string]string, ok bool)
- func ConvertArrayStringMapIntoSimpleStringMap(m map[string][]string) map[string]string
- func ConvertToList(lst string) []string
- func ConvertToNonEmptyList(lst string) []string
- func ConvertToNonEmptyListByEOL(lst string) []string
- func ConvertToNonEmptyListBySeparator(lst string, separator string) []string
- func ConvertToNonEmptySemicolonList(lst string) []string
- func ConvertToUpperAlphaDigital(b []byte) string
- func ConvertURLToList(url string) []string
- func CopyStringMap(src map[string]string) map[string]string
- func DecomposeUrlEncodedString(s string) (r map[string][]string, err error)
- func EncodeURI(s string) string
- func EvaluateDifferenceRate(model string, pattern string) int
- func FindByRegularExpression(source string, regexpr string, group string, defvalue string, isall bool, ...) (interface{}, error)
- func FindIndexInStringArray(data []string, key string) int
- func FindNonEmptyLastString(data []string) string
- func GetBytesFromPointCode(v int) []byte
- func GetCanonicalVersion(version int64) string
- func GetCanonicalVersionFromHexName(version string) string
- func GetCodePoint(b []byte) int
- func GetKeysFromStringIntMap(data map[string]int) []string
- func GetLowCaseExtension(name string) string
- func GetNextNonEmptyPartInYaml(s string) string
- func GetNextWordBySpaceTable(s string, spaceTable map[byte]bool, allRest bool) string
- func GetNextWordExceptYamlControls(s string) string
- func GetNextWordInText(s string) string
- func GetStringArrayWithDefaults(src []string, defs []string) []string
- func GetUnquotedString(data string) string
- func GetVersionIndex(version string) int64
- func InsertTextIntoBuffer(src []byte, posStart int, posEnd int, buf ...[]byte) (dst []byte, dif int)
- func Int64ToFullHex(v int64) string
- func IsAlphabeticalLowCase(s string) bool
- func IsDigitOnly(s string) bool
- func IsJsonNumber(d []byte) bool
- func IsJsonString(str []byte) bool
- func IsSignAndDigitsOnly(s string) bool
- func IsSimpleWord(s string) bool
- func IsSimpleWordWithDash(s string) bool
- func IsStringContainedInArray(s string, collection []string) bool
- func IsStringContainedInStringToAnyMap(s string, collection map[string]interface{}) bool
- func IsStringContainedInStringToStringMap(s string, collection map[string]string) bool
- func IsUpperAlphaDigital(s string) bool
- func IsUpperAlphaDigitalBytes(b []byte) bool
- func IsValidVariableName(data string, uniAllowed bool) int
- func LoadSimpleMapFromByteArray(data []byte, separator byte) map[string]string
- func LoadSimpleMapFromFile(fileName string, separator byte) (res map[string]string, err error)
- func LoadSimpleMapFromString(data string) map[string]string
- func LookInDescriptionByteArray(data []byte, lookNames map[string]string, mustPresent bool) (res map[string]string, err error)
- func LookInDescriptionFile(fileName string, lookNames map[string]string, mustPresent bool) (res map[string]string, err error)
- func MakeUniqueStringList(lists ...[]string) []string
- func MatchParametersByVariableSubstitution(model string, list []string, rest []string, occurrence int, strict bool) (params map[string]string, doubt bool, ok bool)
- func PrepareAndMayQuoteParams(src []string) (string, int)
- func PresentMapAsProperties(pool map[string]string, outputFileName string) error
- func PrintInt64ToByteBuffer(n int64, b []byte) int
- func PutDescribedAttributesToMapFromCommaSeparatedList(params map[string]string, pool map[string]string, list string) error
- func PutDescribedAttributesToMapFromEOLSeparatedList(params map[string]string, pool map[string]string, list string) error
- func PutDescribedAttributesToMapFromList(params map[string]string, pool map[string]string, list []string) error
- func QuickLookJsonOption(s string, option string) string
- func QuoteEscapedJsonBytes(b []byte) []byte
- func QuoteEscapedJsonBytesToString(b []byte) string
- func QuoteEscapedJsonString(s string) string
- func ReadHexValue(v string) int64
- func ReadInsideBrackets(str string, pos int) (endPos int, err error)
- func ReadScreenedString(s string) string
- func ReduceListRestByKnownValueAtIndex(list []string, rest []string, index int, value string) ([]string, []string, int)
- func ReduceListToNonEmptyList(res []string) []string
- func ReduceSpaceAndCountWords(str string) (string, int)
- func ReplaceByRegularExpression(source string, regexpr string, replacement string, isLiteral bool) (string, error)
- func ReplaceWordBySpaceOrSemicolonOrEnd(src string, repl string, pos int) string
- func ReverseStringArray(s []string) []string
- func SeparateBytesToUTF8Chars(b []byte) [][]byte
- func SeparateChildExpression(name string) (res []string)
- func SeparateToKeyValue(line string) (key string, value string)
- func SmartReadQuotedStringEndPos(s string, pos int) (int, bool)
- func SmartReadStringList(s string, nonEmpty bool) []string
- func SmartReadUnquotedStringEndPos(s string, pos int) int
- func SortStringArray(src []string, options []string) []string
- func SortStringArrayByOption(src []string, option string) []string
- func SortStringArrayByOrder(src []string, desc bool) []string
- func SubstitutionGetList(data []byte) (list []string, rest []string, ok bool)
- func SubstitutionMatchModelByPattern(model string, pattern string, hintOccurrence int, hintStrict bool) (params map[string]string, doubt bool, ok bool)
- func SubstitutionsGetNextPosition(list []string, rest []string, positions []int, model string) bool
- func SubstitutionsGetNextPositionFromLast(list []string, rest []string, positions []int, model string) bool
- func SubstitutionsGetParamsByPositions(list []string, rest []string, positions []int, model string) map[string]string
- func TryReadInteger(str string, def int) int
- func UpdateModelByListRestParams(pattern string, list []string, rest []string, paramMap map[string]string, ...) (string, error)
- func UpdateModelByParamGetter(pattern string, paramGetter func(string) (string, bool)) (string, []string)
- func UpdateModelByParams(pattern string, paramMap map[string]string) (string, error)
- func UpdateModelByParamsSilent(pattern string, paramMap map[string]string) (string, error)
- type RegExpession
Constants ¶
This section is empty.
Variables ¶
View Source
var JsonEscapeTable = map[byte]byte{ '\\': '\\', '"': '"', byte(8): 'b', byte(9): 't', byte(10): 'r', byte(12): 'f', byte(13): 'n', }
View Source
var SubstitutionEndParameter = []byte{'}'}
View Source
var SubstitutionStartParameter = []byte{'$', '{'}
View Source
var UINT8_COUNT = 256
Functions ¶
func AddNonRepeatingWords ¶
func CalculateStringCheckSum ¶
func ConvertToList ¶
func ConvertToNonEmptyList ¶
func ConvertURLToList ¶
func EvaluateDifferenceRate ¶
func FindByRegularExpression ¶
func FindIndexInStringArray ¶
func FindNonEmptyLastString ¶
func GetBytesFromPointCode ¶
func GetCanonicalVersion ¶
func GetCodePoint ¶
func GetKeysFromStringIntMap ¶
func GetLowCaseExtension ¶
func GetNextWordBySpaceTable ¶
func GetNextWordInText ¶
func GetUnquotedString ¶
func GetVersionIndex ¶
func InsertTextIntoBuffer ¶
func Int64ToFullHex ¶
func IsAlphabeticalLowCase ¶
func IsDigitOnly ¶
func IsJsonNumber ¶
func IsJsonString ¶
func IsSignAndDigitsOnly ¶
func IsSimpleWord ¶
func IsSimpleWordWithDash ¶
func IsUpperAlphaDigital ¶
func IsValidVariableName ¶
func LoadSimpleMapFromFile ¶
func LoadSimpleMapFromString ¶
func LookInDescriptionFile ¶
func MakeUniqueStringList ¶
func PresentMapAsProperties ¶
func PrintInt64ToByteBuffer ¶
func QuickLookJsonOption ¶
func QuoteEscapedJsonBytes ¶
func QuoteEscapedJsonString ¶
func ReadHexValue ¶
func ReadScreenedString ¶
func ReverseStringArray ¶
func SeparateChildExpression ¶
func SeparateToKeyValue ¶
func SmartReadStringList ¶
func SortStringArray ¶
func SortStringArrayByOption ¶
func SortStringArrayByOrder ¶
func SubstitutionGetList ¶
func TryReadInteger ¶
func UpdateModelByParams ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.