Skip to content

Commit

Permalink
Moving _pos into for-declaration, removing deprecated info from readme
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Sep 25, 2017
1 parent 8ee7952 commit 564f133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
7 changes: 2 additions & 5 deletions MN.L10n/L10nParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ namespace MN.L10n
{
public class L10nParser
{
public List<string> Invocations { get; set; } = new List<string>();

public List<string> Parse(string source)
{
Invocations.Clear();
int _pos = -1;
List<string> Invocations = new List<string>();
bool inToken = false;
StringBuilder _tokenContent = new StringBuilder();
char _stringContainer = '"';

for (_pos = 0; _pos < source.Length; _pos++)
for (int _pos = 0; _pos < source.Length; _pos++)
{
switch (source[_pos])
{
Expand Down
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,6 @@ DealDetails.ShowNotification(
);
```

## Linking javascript
```html
...
<script type="text/javascript" src="<%=
ResolveUrl(
MN.L10n
.Javascript
.Loader
.LoadL10nJavascript("~/path/file.js")
%>"></script>
...
```

## Global.asax.cs
```csharp
protected void Application_Start(object sender, EventArgs e)
Expand Down

0 comments on commit 564f133

Please sign in to comment.