~gandalfn/pantheon-debian/gtk+3.0

« back to all changes in this revision

Viewing changes to debian/missing-sources/zlib.js-0.1.6/src/util.js

  • Committer: gandalfn at club-internet
  • Date: 2015-08-20 09:24:34 UTC
  • Revision ID: gandalfn@club-internet.fr-20150820092434-obsec9i2cezvyyt6
Initial commit:

Release 3.14.5-1.1
  * debian/patches/ubuntu_gtk_custom_menu_items.patch:
    -  Add UbuntuMenuItemFactory
  * disable check on build package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @fileoverview 雑多な関数群をまとめたモジュール実装.
 
3
 */
 
4
goog.provide('Zlib.Util');
 
5
 
 
6
goog.scope(function() {
 
7
 
 
8
/**
 
9
 * Byte String から Byte Array に変換.
 
10
 * @param {!string} str byte string.
 
11
 * @return {!Array.<number>} byte array.
 
12
 */
 
13
Zlib.Util.stringToByteArray = function(str) {
 
14
  /** @type {!Array.<(string|number)>} */
 
15
  var tmp = str.split('');
 
16
  /** @type {number} */
 
17
  var i;
 
18
  /** @type {number} */
 
19
  var il;
 
20
 
 
21
  for (i = 0, il = tmp.length; i < il; i++) {
 
22
    tmp[i] = (tmp[i].charCodeAt(0) & 0xff) >>> 0;
 
23
  }
 
24
 
 
25
  return tmp;
 
26
};
 
27
 
 
28
// end of scope
 
29
});
 
30
 
 
31
/* vim:set expandtab ts=2 sw=2 tw=80: */