From: <ul...@us...> - 2010-10-31 12:22:27
|
Revision: 60 http://adc.svn.sourceforge.net/adc/?rev=60&view=rev Author: ullner Date: 2010-10-31 12:22:20 +0000 (Sun, 31 Oct 2010) Log Message: ----------- add some files.. Modified Paths: -------------- trunk/Source/Helper.cs trunk/Source/Microsoft Visual Studio/ADCLibraryTest/ADCLibraryTest.csproj trunk/Source/readme.txt Added Paths: ----------- trunk/Source/Microsoft Visual Studio/ADCLibrary/ADCLibrary.sln trunk/Source/Microsoft Visual Studio/ADCLibrary.sln Modified: trunk/Source/Helper.cs =================================================================== --- trunk/Source/Helper.cs 2010-10-29 20:55:08 UTC (rev 59) +++ trunk/Source/Helper.cs 2010-10-31 12:22:20 UTC (rev 60) @@ -27,7 +27,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; using System.Text.RegularExpressions; @@ -56,5 +55,18 @@ return strOutput; } + + //public static string UnEscape(string strInput) + //{ + // string strOutput = strInput; + + // strOutput = strOutput.Replace("\\t", "\t"); + + // strOutput = strOutput.Replace("\\\\", "\\"); + + + + + //} } } Added: trunk/Source/Microsoft Visual Studio/ADCLibrary/ADCLibrary.sln =================================================================== --- trunk/Source/Microsoft Visual Studio/ADCLibrary/ADCLibrary.sln (rev 0) +++ trunk/Source/Microsoft Visual Studio/ADCLibrary/ADCLibrary.sln 2010-10-31 12:22:20 UTC (rev 60) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADCLibrary", "ADCLibrary.csproj", "{F9C721FB-A66D-4D2A-B49E-BB41E4946A24}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Added: trunk/Source/Microsoft Visual Studio/ADCLibrary.sln =================================================================== --- trunk/Source/Microsoft Visual Studio/ADCLibrary.sln (rev 0) +++ trunk/Source/Microsoft Visual Studio/ADCLibrary.sln 2010-10-31 12:22:20 UTC (rev 60) @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADCLibrary", "ADCLibrary.csproj", "{F9C721FB-A66D-4D2A-B49E-BB41E4946A24}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F9C721FB-A66D-4D2A-B49E-BB41E4946A24}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Modified: trunk/Source/Microsoft Visual Studio/ADCLibraryTest/ADCLibraryTest.csproj =================================================================== --- trunk/Source/Microsoft Visual Studio/ADCLibraryTest/ADCLibraryTest.csproj 2010-10-29 20:55:08 UTC (rev 59) +++ trunk/Source/Microsoft Visual Studio/ADCLibraryTest/ADCLibraryTest.csproj 2010-10-31 12:22:20 UTC (rev 60) @@ -40,6 +40,9 @@ <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> + <Compile Include="..\..\CodeTest.cs"> + <Link>CodeTest.cs</Link> + </Compile> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> </ItemGroup> Modified: trunk/Source/readme.txt =================================================================== --- trunk/Source/readme.txt 2010-10-29 20:55:08 UTC (rev 59) +++ trunk/Source/readme.txt 2010-10-31 12:22:20 UTC (rev 60) @@ -1 +1,43 @@ -All code that is submitted to the ADCProject should have a note specifying the transfer of copyright to the ADCProject. \ No newline at end of file + +Table of content + +1. Code structure + +All code shall follow the following general structure for naming convention; +* Namespace or package name should be ADC +* Files, classes and most (see below for exceptions) function names are named with initial upper case letter and upper case letters starting each new word. An abbreviation shall be spelt in all upper case letters. +Examples: file TigerTreeHashImplementation.h, class TTHImplementation, function CalculateTTH() +* All member variables shall be named with first word in lower case and upper case letters starting each new word. An abbreviation shall be spelt in all upper case letters. All variables shall be prefixed with an underscore ('_') or as the language recommendation unless the language is listed as below; + C++: m_ + C#: _ +Examples: m_fooBar, _fooBar +* All member properties (e.g. in C#) shall be named similarly as Files, classes and functions. In languages that do not support properties, function implementation of properties (get/set), 'get' and 'set' shall be prefixed with the 'property' name. +Examples: MessageType, getMessageType(), setMessageType(...) +* Function scoped variables shall be named with first word in lower case and upper case letters starting each new word. An abbreviation shall be spelt in all upper case letters. +Examples: lifeAndMeaningOfLife, debugSource + +Block structure +* Ifs and loops should always be surrounded by a code block, regardless if the code blocks are needed or not. +Example: +a) OK: if( 42 == lifeAndMeaningOfLife ) { print "42" } +b) Not OK: if ( 42 == lifeAndMeaningOfLife ) print "42" + +Code/Type safety +* Implementations should always strive to be as compile-time safe as possible. +* Functions should be as const-correct as possible. All get() functions should be constant. +Example: int getFooBar() const; + +Documentation +* All files, classes, functions and member variables shall be documented. +* All files shall contain a copyright notice pointing to the ADCProject and the New BSD license. See 2. Code license below. + +Return values +* Functions should return as few values as possible and instead rely on references as funtion parameters. + +2. Code license + +All code that is submitted to the ADCProject should have a note specifying the transfer of copyright to the ADCProject. + +The LICENSE is New BSD License (3-clause BSD license). + +See the file LICENSE for the text to use in each file. \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |