Skip to content

Commit

Permalink
rename to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed May 15, 2023
1 parent f52af03 commit 89ee190
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ stardoc_with_diff_test(
)

stardoc_with_diff_test(
name = "string",
bzl_library_target = "//lib:string",
name = "strings",
bzl_library_target = "//lib:strings",
)

update_docs()
File renamed without changes.
6 changes: 3 additions & 3 deletions lib/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ bzl_library(
)

bzl_library(
name = "string",
srcs = ["string.bzl"],
deps = ["//lib/private/docs:string"],
name = "strings",
srcs = ["strings.bzl"],
deps = ["//lib/private/docs:strings"],
)
2 changes: 1 addition & 1 deletion lib/private/base64.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Implementation based on https://gist.github.com/trondhumbor/ce57c0c2816bb45a8fbb
the subset of python available in Starlark.
"""

load(":string.bzl", "ord", "chr")
load(":strings.bzl", "ord", "chr")

def decode(data):
"""Decode a Base64 encoded string.
Expand Down
6 changes: 3 additions & 3 deletions lib/private/docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ bzl_library(
name = "base64",
srcs = ["//lib/private:base64.bzl"],
deps = [
":string"
":strings"
]
)

Expand All @@ -249,6 +249,6 @@ bzl_library(


bzl_library(
name = "string",
srcs = ["//lib/private:string.bzl"],
name = "strings",
srcs = ["//lib/private:strings.bzl"],
)
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/private/string.py → lib/private/strings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# python utility to seed the starlark constants in base64.bzl
# python utility to seed the starlark constants in strings.bzl

print("")
print("CHAR_TO_INT = {")
Expand Down
9 changes: 0 additions & 9 deletions lib/string.bzl

This file was deleted.

9 changes: 9 additions & 0 deletions lib/strings.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


"Utilities for strings"

load("//lib/private:strings.bzl", _chr = "chr", _ord = "ord", _hex = "hex")

chr = _chr
ord = _ord
hex = _hex

0 comments on commit 89ee190

Please sign in to comment.