modify some separators we don't get into trouble when storing more data in extra values, and when storing extra values in prefs

This commit is contained in:
Helium314 2025-02-15 21:45:26 +01:00
parent 4c060689fa
commit d005ffac06
11 changed files with 96 additions and 60 deletions

View file

@ -102,6 +102,18 @@ public final class Constants {
}
}
/** Separators for use in extra values and preferences. Notably cannot be = and , as they are already used in extra values */
public static final class Separators {
/** key-value separator (to be used in subtype extra values) */
public static final String KV = ":";
/** separator between entries that might be key-value pairs (to be used in subtype extra values) */
public static final String ENTRY = "|";
/** separator between sets of entries (to be used for storing data for additional subtypes) */
public static final String SET = "§";
/** separator for sets (to be used for storing multiple extra additional subtypes in prefs) */
public static final String SETS = ";";
}
public static final class TextUtils {
/**
* Capitalization mode for {@link android.text.TextUtils#getCapsMode}: don't capitalize