|
From: <mut...@us...> - 2010-03-03 05:13:40
|
Revision: 607
http://libmage.svn.sourceforge.net/libmage/?rev=607&view=rev
Author: mutanabbi
Date: 2010-03-03 05:13:33 +0000 (Wed, 03 Mar 2010)
Log Message:
-----------
Kate snippets
Added Paths:
-----------
gentoo-configs/mutanabbi/common/home/radja/.kde4/
gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/
gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/
gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/2_testsnippetscpp.xml
gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/files.rel
Added: gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/2_testsnippetscpp.xml
===================================================================
--- gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/2_testsnippetscpp.xml (rev 0)
+++ gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/2_testsnippetscpp.xml 2010-03-03 05:13:33 UTC (rev 607)
@@ -0,0 +1,158 @@
+<snippets license="GPL3" filetypes="C++;C" authors="Ilya Kolesnikovich" name="My C++ snippets">
+
+ <item>
+ <displayprefix>iterator</displayprefix>
+ <match>for</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>for (
+ ${container_type}::${const_iterator=mooo} ${it} = ${container}.begin()
+ , last = %{container}.end()
+ ; %{it} != last
+ ; ++%{it}
+ )
+%{cursor}</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>bf</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>class ${functor} : public std::binary_function<${first_arg_type}, ${second_arg_type}, ${return_type}>
+{
+public:
+ %{functor}(${parameters})
+ {
+ }
+ %{return_type} operator()(%{first_arg_type} lhv, %{second_arg_type} rhv) const
+ {
+ %{cursor}
+ }
+};</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>map</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>std::map<${key}, ${value}> map${initialization};</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>vec</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>std::vector<${type}> v${initialization};</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>sp</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>boost::shared_ptr<${type}> sp${initialization};</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>ns</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>namespace ${name}
+{
+ %{cursor}
+} // %{name}</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>class</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>/**
+ * \brief ${brief}
+ *
+ * ${description}
+ *
+ */
+class ${name}
+{
+ %{cursor}
+public:
+ %{name}(${arguments});
+ virtual ~%{name}();
+};</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>nc</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>/**
+ * \brief ${brief}
+ *
+ * ${description}
+ *
+ */
+class ${name} : boost::noncopyable
+{
+ %{cursor}
+public:
+ %{name}(${arguments});
+ virtual ~%{name}();
+};</fillin>
+ </item>
+
+ <item>
+ <displayprefix>index</displayprefix>
+ <match>for</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>for (${site_t} ${index} = ${0}; %{index} < ${limit}; ++%{index})
+%{cursor}</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>main</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>int main(int ${argc}, char* ${argv}[])
+{
+ %{cursor}
+ return 0;
+}</fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>#i</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>#include <${iostream}>
+ </fillin>
+ </item>
+
+ <item>
+ <displayprefix></displayprefix>
+ <match>uf</match>
+ <displaypostfix></displaypostfix>
+ <displayarguments></displayarguments>
+ <fillin>class ${functor} : public std::unary_function<${argument_type}, ${return_type}>
+{
+public:
+ %{functor}(${parameters})
+ {
+ }
+ %{return_type} operator()(%{argument_type} arg) const
+ {
+ %{cursor}
+ }
+};</fillin>
+ </item>
+
+</snippets>
Property changes on: gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/2_testsnippetscpp.xml
___________________________________________________________________
Added: svn:keywords
+ Id HeadURL Revision Date Author
Added: svn:eol-style
+ native
Added: gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/files.rel
===================================================================
--- gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/files.rel (rev 0)
+++ gentoo-configs/mutanabbi/common/home/radja/.kde4/kate/plugins/files.rel 2010-03-03 05:13:33 UTC (rev 607)
@@ -0,0 +1,2 @@
+#!/bin/sh
+relocate "`get_files`" ~radja/.kde4/share/apps/kate/plugins/katesnippets_tng/data/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|