- Timestamp:
- 03/21/09 23:07:19 (4 years ago)
- Location:
- lang/csharp/soyText/soyText
- Files:
-
- 2 added
- 1 removed
- 5 modified
-
Inclusion.cs (added)
-
Indexer.cs (modified) (3 diffs)
-
Mkdir.cs (modified) (2 diffs)
-
Token.cs (added)
-
bin/Debug/soyText.exe (modified) (previous)
-
bin/Debug/soyText.pdb (modified) (previous)
-
bin/Debug/soyText.vshost.exe.manifest (deleted)
-
soyText.csproj (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/csharp/soyText/soyText/Indexer.cs
r31425 r31432 23 23 } 24 24 } 25 public static String token2PathPart(String token)25 /* public static String token2PathPart(String token) 26 26 { 27 27 if (token.Length == 0) return "/empty.txt"; … … 52 52 { 53 53 return indexPath+token2PathPart(token)+"/document.txt"; 54 }*/ 55 public Token createToken(String t) 56 { 57 return new Token(this, t); 54 58 } 55 59 public void make(Document d) … … 61 65 { 62 66 if (str[0] < ' ') return; 63 var f = (strs.ContainsKey(str)? strs[str]:null); 67 var tk = createToken(str); 68 var path = tk.documentPath; 69 var f = (strs.ContainsKey(path) ? strs[path] : null); 64 70 if (f == null) 65 71 { 66 f = new StreamWriter(Mkdir.openStream(path(str), true)); 67 strs[str] = f; 72 Inclusion.process(tk); 73 f = new StreamWriter(Mkdir.openStream(tk.documentPath , true)); 74 strs[path] = f; 68 75 f.Write("\n" + h); 69 76 } -
lang/csharp/soyText/soyText/Mkdir.cs
r31425 r31432 12 12 return openStream(fileName, false); 13 13 } 14 public static FileStream openStream(String fileName, Booleanappend)14 public static FileStream openStream(String fileName, bool append) 15 15 { 16 16 Directory.CreateDirectory(Path.GetDirectoryName(fileName)); … … 26 26 return Directory.GetFiles(dirName); 27 27 } 28 public static StreamWriter openTextoutStream(String fileName) { 29 return new StreamWriter(openStream(fileName)); 30 28 public static StreamWriter openTextoutStream(String fileName) 29 { 30 return openTextoutStream(fileName, true); 31 } 32 public static StreamWriter openTextoutStream(String fileName,bool append) { 33 return new StreamWriter(openStream(fileName,append)); 31 34 } 32 35 } -
lang/csharp/soyText/soyText/soyText.csproj
r31425 r31432 87 87 <DesignTimeSharedInput>True</DesignTimeSharedInput> 88 88 </Compile> 89 <Compile Include="Inclusion.cs" /> 89 90 <Compile Include="TimeFormat.cs" /> 91 <Compile Include="Token.cs" /> 90 92 <Compile Include="Tokenizer.cs" /> 91 93 <Compile Include="Workspace.cs" />
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)