aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/language/libkvilanguage.cpp
diff options
context:
space:
mode:
authorGravatar un1versal2016-03-02 12:15:44 +0000
committerGravatar un1versal2016-03-14 04:57:12 +0000
commitf138911b65dfce85c551f9e2e4bbeb595d6c6755 (patch)
tree701d5eec803c30160be47f8762b5838e57bc44dd /src/modules/language/libkvilanguage.cpp
parentcleanup: add or remove empty lines between documentation blocks & code (diff)
downloadKVIrc-f138911b65dfce85c551f9e2e4bbeb595d6c6755.tar.gz
KVIrc-f138911b65dfce85c551f9e2e4bbeb595d6c6755.tar.bz2
KVIrc-f138911b65dfce85c551f9e2e4bbeb595d6c6755.zip
documentation: formatting/indentation + minor syntax fixes
+ Dont use double quotes to emphasise words in normal circumstances. + improve indenting + consistency (good for readability when editing source) + also replace single quotes
Diffstat (limited to 'src/modules/language/libkvilanguage.cpp')
-rw-r--r--src/modules/language/libkvilanguage.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/language/libkvilanguage.cpp b/src/modules/language/libkvilanguage.cpp
index 6f800d614..cd287ff03 100644
--- a/src/modules/language/libkvilanguage.cpp
+++ b/src/modules/language/libkvilanguage.cpp
@@ -37,7 +37,7 @@
@title:
$language.detect
@short:
- (Tries to) detect the language and encoding of a string
+ Tries to detect the language and encoding of a string
@syntax:
<hash> language.detect(<text: string>)
@description:
@@ -45,18 +45,18 @@
as [text]. The accuracy of the detection mainly depends on the length
of the supplied text. Good results can be achieved with some thousands
characters.[br]
- This command is exported by the "language" module.
+ This command is exported by the [i]language[/i] module.
@examples:
[example]
- %dati = $language.detect("I'm a lord and I speak perfect English.");
- if(%dati{"error"} != "")echo "Language detection failed: " %dati{"error"};
- %count = %dati{"matchcount"};
- for(%i=0;%i<%count;%i++)
- {
- echo "LANGUAGE " %i " : " %dati{"matches"}[%i]{"language"};
- echo "ENCODING " %i " : " %dati{"matches"}[%i]{"encoding"};
- echo "SCORE " %i " : "%dati{"matches"}[%i]{"score"};
- }
+ %dati = $language.detect("I'm a lord and I speak perfect English.");
+ if(%dati{"error"} != "")echo "Language detection failed: " %dati{"error"};
+ %count = %dati{"matchcount"};
+ for(%i=0;%i<%count;%i++)
+ {
+ echo "LANGUAGE " %i " : " %dati{"matches"}[%i]{"language"};
+ echo "ENCODING " %i " : " %dati{"matches"}[%i]{"encoding"};
+ echo "SCORE " %i " : "%dati{"matches"}[%i]{"score"};
+ }
echo "ACCURACY: " %dati{"accuracy"};
[/example]
*/