~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/strconv/itoa.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý, Ondřej Surý, Michael Stapelberg
  • Date: 2012-06-28 12:14:15 UTC
  • mfrom: (1.1.15)
  • mto: (3.1.5 experimental) (14.3.1 saucy)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20120628121415-w1b0076ixkarr1ml
[ Ondřej Surý ]
* Imported Upstream version 1.0.2
* Update Vcs fields to reflect new git repository location
* Kill get-orig-source, since 1.0.0, the tarballs can be downloaded
  from webpage

[ Michael Stapelberg ]
* golang-mode: use debian-pkg-add-load-path-item (Closes: #664802)
* Add manpages (Closes: #632964)
* Use updated pt.po from Pedro Ribeiro (Closes: #674958)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
package strconv
6
6
 
7
 
// FormatUint returns the string representation of i in the given base.
 
7
// FormatUint returns the string representation of i in the given base,
 
8
// for 2 <= base <= 36. The result uses the lower-case letters 'a' to 'z'
 
9
// for digit values >= 10.
8
10
func FormatUint(i uint64, base int) string {
9
11
        _, s := formatBits(nil, i, base, false, false)
10
12
        return s
11
13
}
12
14
 
13
 
// FormatInt returns the string representation of i in the given base.
 
15
// FormatInt returns the string representation of i in the given base,
 
16
// for 2 <= base <= 36. The result uses the lower-case letters 'a' to 'z'
 
17
// for digit values >= 10.
14
18
func FormatInt(i int64, base int) string {
15
19
        _, s := formatBits(nil, uint64(i), base, i < 0, false)
16
20
        return s