summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-01-17 20:23:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-22 17:48:21 +0100
commit95f88ed6c58925b74e6e6c25a44e597e5be112b1 (patch)
treeabb4727988cd208efe2f0cea79efb1e56b11565a /examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
parentf217661e4c0c5c653442da65498c4a235a41b785 (diff)
whitespace fixes
remove trailing spaces & expand tabs Change-Id: Ic958087d8c50f3c51d767f5191e54c4079cc74a2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq')
-rw-r--r--examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq b/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
index 026679d6..4bc4243d 100644
--- a/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
+++ b/examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq
@@ -1,5 +1,5 @@
-(:
- This XQuery loads a GCC-XML file and reports the locations of all
+(:
+ This XQuery loads a GCC-XML file and reports the locations of all
global variables in the original C++ source. To run the query,
use the command line:
@@ -12,10 +12,10 @@
declare variable $fileToOpen as xs:anyURI external;
declare variable $inDoc as document-node() := doc($fileToOpen);
-(:
+(:
This function determines whether the typeId is a complex type,
e.g. QString. We only check whether it's a class. To be strictly
- correct, we should check whether the class has a non-synthesized
+ correct, we should check whether the class has a non-synthesized
constructor. We accept both mutable and const types.
:)
declare function local:isComplexType($typeID as xs:string) as xs:boolean
@@ -33,7 +33,7 @@ declare function local:isPrimitive($typeId as xs:string) as xs:boolean
exists($inDoc/GCC_XML/FundamentalType[@id = $typeId])
};
-(:
+(:
This function constructs a line for the report. The line contains
a variable name, the source file, and the line number.
:)
@@ -42,7 +42,7 @@ declare function local:location($block as element()) as xs:string
concat($inDoc/GCC_XML/File[@id = $block/@file]/@name, " at line ", $block/@line)
};
-(:
+(:
This function generates the report. Note that it is called once
in the <body> element of the <html> output.
@@ -76,7 +76,7 @@ declare function local:report() as element()+
};
(:
- This is where the <html> report is output. First
+ This is where the <html> report is output. First
there is some style stuff, then the <body> element,
which contains the call to the \c{local:report()}
declared above.
@@ -95,7 +95,7 @@ declare function local:report() as element()+
.variableName
{{
font-family: courier;
- color: blue
+ color: blue
}}
</style>