LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Windows environment variables. | 5 // Windows environment variables. |
6 | 6 |
7 package syscall | 7 package syscall |
8 | 8 |
9 import ( | 9 import ( |
10 "unicode/utf16" | 10 "unicode/utf16" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // empty string marks the end | 81 // empty string marks the end |
82 if i <= from { | 82 if i <= from { |
83 break | 83 break |
84 } | 84 } |
85 r = append(r, string(utf16.Decode(p[from:i]))) | 85 r = append(r, string(utf16.Decode(p[from:i]))) |
86 from = i + 1 | 86 from = i + 1 |
87 } | 87 } |
88 } | 88 } |
89 return r | 89 return r |
90 } | 90 } |
LEFT | RIGHT |