Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does encode throw away commas and just use them for parity? if so then.. #144

Open
knormoyle opened this issue Jan 4, 2025 · 0 comments

Comments

@knormoyle
Copy link

I was trying to understand the encode function for a character and couldn't understand comma handling

Does a comma just get thrown away after xoring it into parity generation?

if so, how does a sentence like this get parsed correctly, if you have some empty fields in the middle, and good fields after that?

$GNGSA,A,3,30,14,09,04,,,,,,,,,1.37,0.77,1.14,10B
$GNGSA,A,3,68,78,67,69,,,,,,,,,1.37,0.77,1.14,2
0C
$GNGSA,A,3,05,09,06,25,03,,,,,,,,1.37,0.77,1.14,30C
$GNGSA,A,3,12,23,11,08,,,,,,,,,1.37,0.77,1.14,4
0F

seems like you need to retain commas to correctly identify fields in a finished sentence?
I thought fields aren't extracted until you get a finished sentence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant