mirror of
https://github.com/twiglet/cs2j.git
synced 2025-01-18 13:15:17 +01:00
Compare commits
1 Commits
master
...
trial11072
Author | SHA1 | Date | |
---|---|---|---|
|
fc56b9f5c3 |
@ -32,7 +32,7 @@ namespace Twiglet.CS2J.Translator
|
|||||||
{
|
{
|
||||||
class CS2J
|
class CS2J
|
||||||
{
|
{
|
||||||
private const string VERSION = "2011.2.3";
|
private const string VERSION = "2011.2.3trial";
|
||||||
private static DirectoryHT<TypeRepTemplate> AppEnv { get; set; }
|
private static DirectoryHT<TypeRepTemplate> AppEnv { get; set; }
|
||||||
private static CS2JSettings cfg = new CS2JSettings();
|
private static CS2JSettings cfg = new CS2JSettings();
|
||||||
private static StringTemplateGroup templates = null;
|
private static StringTemplateGroup templates = null;
|
||||||
@ -358,7 +358,7 @@ namespace Twiglet.CS2J.Translator
|
|||||||
// Suck in translation file
|
// Suck in translation file
|
||||||
Stream txStream = new FileStream(fullName, FileMode.Open, FileAccess.Read);
|
Stream txStream = new FileStream(fullName, FileMode.Open, FileAccess.Read);
|
||||||
|
|
||||||
if (numLines < numLines - 1)
|
if (numLines < numLines + 1)
|
||||||
{
|
{
|
||||||
// TRIAL ONLY
|
// TRIAL ONLY
|
||||||
// Create a new XML document.
|
// Create a new XML document.
|
||||||
@ -421,7 +421,7 @@ namespace Twiglet.CS2J.Translator
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static string limit(string inp) {
|
private static string limit(string inp) {
|
||||||
if (numLines > numLines - 1)
|
if (numLines > numLines + 1)
|
||||||
return inp;
|
return inp;
|
||||||
// TRIAL ONLY
|
// TRIAL ONLY
|
||||||
String[] lines = inp.Split(newLines, numLines+1, StringSplitOptions.None);
|
String[] lines = inp.Split(newLines, numLines+1, StringSplitOptions.None);
|
||||||
|
@ -15,6 +15,12 @@ namespace Twiglet.CS2J.Translator
|
|||||||
group JavaPrettyPrintTemplates;
|
group JavaPrettyPrintTemplates;
|
||||||
|
|
||||||
itsmine(now, includeDate) ::= <<
|
itsmine(now, includeDate) ::= <<
|
||||||
|
//
|
||||||
|
// This code is to be used for evaluation of the CS2J tool ONLY.
|
||||||
|
//
|
||||||
|
// This file was translated from C# to Java by CS2J (http://www.cs2j.com).
|
||||||
|
//
|
||||||
|
// For more information about CS2J please contact info@twigletsoftware.com
|
||||||
<if(includeDate)>
|
<if(includeDate)>
|
||||||
//
|
//
|
||||||
// Translated by CS2J (http://www.cs2j.com): <now><\n>
|
// Translated by CS2J (http://www.cs2j.com): <now><\n>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user