Skip to content

Overview

Welcome to the Quasseldroid documentation!

Danger

The documentation is still being worked on, currently all content is placeholder content.

Examples

Text example

This is an example for a normal text.

Code example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package de.kuschku.libquassel.util.irc

object HostmaskHelper {
  fun nick(mask: String): String {
    val (nick, _, _) = split(mask)
    return nick
  }

  fun user(mask: String): String {
    val (_, user, _) = split(mask)
    return user
  }

  fun host(mask: String): String {
    val (_, _, host) = split(mask)
    return host
  }

  fun split(mask: String): Triple<String, String, String> {
    val userPartHostSplit = mask.split("@", limit = 2)
    if (userPartHostSplit.size < 2)
      return Triple(mask, "", "")

    val (userPart, host) = userPartHostSplit

    val nickUserSplit = userPart.split('!', limit = 2)
    if (nickUserSplit.size < 2)
      return Triple(mask, "", host)

    val (nick, user) = nickUserSplit
    return Triple(nick, user, host)
  }
}

Inline Code Example

This is inline var test=0; code highlighting.

Formula Example

$$ Y = \lambda f.(\lambda x.f(x x)) (\lambda x.f (x x)) $$

Inline Formula Example

This is the y combinator $Y = \lambda f.(\lambda x.f(x x)) (\lambda x.f (x x))$.