mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
documenting the different query cases
This commit is contained in:
parent
dbb4a87784
commit
e7a0a4d4ae
@ -35,8 +35,23 @@ sealed interface QueryStringValue {
|
|||||||
data class Contains(override val string: String, override val case: Case = Case.SENSITIVE) : ContentQueryStringValue
|
data class Contains(override val string: String, override val case: Case = Case.SENSITIVE) : ContentQueryStringValue
|
||||||
|
|
||||||
enum class Case {
|
enum class Case {
|
||||||
|
/**
|
||||||
|
* Match query sensitive to case
|
||||||
|
*/
|
||||||
SENSITIVE,
|
SENSITIVE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Match query insensitive to case, this only works for Latin-1 character sets
|
||||||
|
*/
|
||||||
INSENSITIVE,
|
INSENSITIVE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Match query with input normalized (case insensitive)
|
||||||
|
* Works around Realms inability to sort or filter by case for non Latin-1 character sets
|
||||||
|
* Expects the target field to contain normalized data
|
||||||
|
*
|
||||||
|
* @see org.matrix.android.sdk.internal.util.Normalizer.normalize
|
||||||
|
*/
|
||||||
NORMALIZED
|
NORMALIZED
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user