All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.likethesalad.placeholder.data.Constants.kt Maven / Gradle / Ivy

Go to download

This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.

There is a newer version: 1.3.0
Show newest version
package com.likethesalad.placeholder.data

class Constants {
    companion object {
        const val TEMPLATE_STRING_PREFIX = "template_"
        val TEMPLATE_STRING_PREFIX_REGEX = Regex("^$TEMPLATE_STRING_PREFIX")
        val TEMPLATE_STRING_REGEX = Regex("^$TEMPLATE_STRING_PREFIX[a-zA-Z][a-zA-Z0-9_]*")
        val PLACEHOLDER_REGEX = Regex("\\$\\{([a-zA-Z0-9_]+)}")
        val TEMPLATE_AS_PLACEHOLDER_REGEX = Regex("\\\$\\{($TEMPLATE_STRING_PREFIX[a-zA-Z0-9_]+)}")

        const val XML_STRING_TAG = "string"
        const val XML_RESOURCES_TAG = "resources"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy