-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement workaround for URI parsing
- Loading branch information
Jay Patel
committed
Mar 2, 2020
1 parent
1284827
commit 8cdb073
Showing
6 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ids, utils } from "apg-lib"; | ||
import { Yard } from "./Yard"; | ||
|
||
export function uri( | ||
state: typeof ids.SEM_PRE | typeof ids.SEM_POST, | ||
chars: number[], | ||
phraseIndex: number, | ||
phraseLength: number, | ||
yard: Yard | ||
): typeof ids.SEM_OK | typeof ids.SEM_SKIP { | ||
switch (state) { | ||
case ids.SEM_PRE: | ||
break; | ||
|
||
case ids.SEM_POST: | ||
yard.tracks.uri.push( | ||
utils.charsToString(chars, phraseIndex, phraseLength) | ||
); | ||
break; | ||
} | ||
|
||
return ids.SEM_OK; | ||
} |